Hi,
I'm currently trying to make the preview work on a Next.JS website I'm building. It works perfectly when running in dev mode locally but when deployed on Netlify, I get a 404 page (the Next JS default one since I didn't do a custom one yet). When I look up the cookies they are present and seems valid.
I'm running NextJS 9, @prismicio/client 4 and deploying using the @netlify/plugin-nextjs plugin
I'm including some code in a codesandbox of the relevant parts (IMO) vibrant-oskar-32938 - CodeSandbox
I based myself on this example for my development next.js/examples/cms-prismic at canary ยท vercel/next.js (github.com)
I know their example is for vercel but it should work with that I read for netlify.
Am I missing something? It seems like the cookies aren't took into consideration.
If you need more details please feel free to ask
Thanks