I have a minimal setup of a single page site build with Nuxt 3 that I am trying to preview. I use @nuxtjs/prismic module.
I run npm run generate , then on prismic, after configuring a preview endpoint, try to preview my draft content on the generated pages. I have configured link-resolver.js (for the example it always returns /) . But I always see the old content. The prismic popin is present, but the content is not updated.
It works well when I use the development environment (before SSG).
1.Make sure previews are configured correctly in Prismic
In Dashboard > Settings > Previews, make sure that all of your previews are properly configured, with /preview added for the Link Resolver.
2. Delete your preview cookie
On your website (localhost or production), open Dev Tools, go to the "Application" tab and click "Cookies" in the side menu. Click on the domain (localhost:8000 or your production domain), and scroll to find any domains that include io.prismic.preview. Delete all of those.
Finally, refresh everything and try opening a preview from the writing room again.
Let me know if that helps. If not, I can do some more digging to see. For this, I need your repo name and project code. You can send it via a private message.
If I download and install this, then run npm run generate and npm run preview (to serve static content for demo purpose on port 3000), preview prismic does not work anymore (it does when running npm run dev)