-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cache option not working #149
Comments
Confirming this issue. Whenever I pass The problematic code seems to be this bit in the
|
This should be fixed as of |
Closing since it hasn't been active in a while and the latest comment from @StaffOfHades. If it's still happening feel free to re-open providing a valid reproduction link Thanks! |
If i try to enable cache option:
buildModules: [ ["@storyblok/nuxt", { accessToken: "xxxxx", apiOptions: { cache: { type: "memory" }, }, }] ],
I get an error:
Cannot add property accessToken, object is not extensible
This is also not working:
buildModules: [ ["@storyblok/nuxt", { accessToken: "xxxxx", apiOptions: { accessToken: "xxxxx", cache: { type: "memory" }, }, }] ],
Iam using the latest version.
If i remove the apiOptions property, storyblok creates two request:
301 https://api.storyblok.com/v2/cdn/stories/en?version=published&token=xxxxx&cv=undefined
=>200 https://api.storyblok.com/v2/cdn/stories/en?cv=1654702667&token=xxxxx&version=published
How can i prevent this 301?
The text was updated successfully, but these errors were encountered: