Closed bchiang7 closed 5 years ago
Hi @bchiang7 ,
The nuxt plugin does not currently support preview in when generating a static site. For the time being we suggest deploying as a server side rendered app using a service like Heroku .
Thanks, Phil.
Gotcha, thanks!
I realize this is closed and the answer makes sense, but if you wanted to have the generate
command work with this example you could exclude the Preview route with configuration:
nuxt.config.js:
generate: {
exclude: [
/^(?=.*\bPreview\b).*$/
]
}
This sample has now changed, so it works with the generate command. So including the above exclude will break the now break the generate process.
Check out this article for migrating old projects to the new module. https://prismic.io/docs/vuejs/getting-started/the-new-prismic-nuxt-module
Hi there @levimykel, with a fresh clone of this repo I'm getting an error from the preview page when I run
npm run generate
. It seems to be originating from theapi.previewSession
call, which uses thenode-fetch
package. Any ideas how to resolve this?