Closed 2metres closed 4 years ago
did you add the correct preview token?
Hi, @2metres is there any update about this problem?
I haven't been able to reproduce, closing the issue
@emanuelgsouza I am getting this error in Cloudflare pages but not locally?
If anyone else runs into this and not sure what else to try, it turns out I was trying to hit the wrong region. By default Storyblok wants to hit the Europe region. If your space is set up in the United States you need to tell Storyblok that when you init the library.
// _app.js
storyblokInit({
accessToken: 'xxx',
use: [apiPlugin],
components,
apiOptions: {
region: 'us' // this is what I was missing
}
});
More documentation here: https://www.storyblok.com/faq/define-specific-region-storyblok-api