-
Notifications
You must be signed in to change notification settings - Fork 48
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
Nuxt systematically inits the API in production where it could only when needed #134
Comments
Hey @gabrielsze, thanks for raising your concerns regarding that and taking the time to look for duplicates. As of writing this there's unfortunately no way to achieve that using this module. A workaround would be to scale down to @prismicio/vue which might give you more control but might not be as straightforward to use as this module. However with the new version of @prismicio/client we're now recommending to init the API through the Let us know if anything! |
Update
|
Just updated my previous comment as I had an idea about it, landing soon 🙂 |
A reference to an issue raised earlier here - #77,
especially highlighted in this comment
This is an issue for me because I'm only utilising prismic in one of my subdirectories
example.com/blog
. However, when I generate many other pages in other subdirectoriesexample.com/pages1
,example.com/pages2
etc, the prismic API key is somehow always called, resulting in many API calls incurred (thousands of pages generated), and this error is thrown many times.Is there a way to only include the API calls for pages which only require them?
The text was updated successfully, but these errors were encountered: