You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the storyblokApi.get() method to fetch a story sometimes returns an error, which causes the site to crash as there is no data at all. Not sure why this happens as I have tested with a regular fetch call to the storyblok endpoint, which works without issues.
I am using NextJS 14.1.3 for this project and "@storyblok/react": "3.0.8".
Expected Behavior
When using the storyblokApi.get() method the data should be returned as:
Using the
storyblokApi.get()
method to fetch a story sometimes returns an error, which causes the site to crash as there is no data at all. Not sure why this happens as I have tested with a regular fetch call to the storyblok endpoint, which works without issues.I am using NextJS 14.1.3 for this project and "@storyblok/react": "3.0.8".
Expected Behavior
When using the storyblokApi.get() method the data should be returned as:
Current Behavior
Local testing:
Production environment:
Steps to Reproduce
This is my current
storyblok.ts
setup for getting stories, links etc.:If I change the
getStory
method use a regular fetch method instead I do not get this issue:The text was updated successfully, but these errors were encountered: