Skip to content
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

Support the new target: "static" #111

Closed
francois2metz opened this issue Dec 29, 2020 · 1 comment
Closed

Support the new target: "static" #111

francois2metz opened this issue Dec 29, 2020 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@francois2metz
Copy link

The target "static" has been introduced in nuxt 1.13. It would be nice if prismic-module would support it.

Right now, using the static target, there is one call to the prismic api in the generated site:
https://github.com/nuxt-community/prismic-module/blob/c824747c3e90634324236d897097da11e7a2d831/src/templates/plugins/prismic.js#L19

@lihbr
Copy link
Collaborator

lihbr commented Apr 12, 2021

Closing in favor of #134

tl;dr;

We'll consider switching to the .client method soon to init the API which comes with the benefit of only initing the API when actually called. We just need to assess the impact that could have on existing users before!

@lihbr lihbr closed this as completed Apr 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants