Next.js Preview mode for a blogpost with slug leads to a 404 - Contentful

Hello!

I’ve setup preview mode and followed Next.js docs. My site is deployed on netlify with the next plugin.
Current Next version is latest 10.1.3, (also tried 10.0.6).

My Preview mode works for my blog landing page and does fetch and render the list of posts that are in draft.

However previewing a post directly where a slug is involved i just end up at Nexts 404 page.

What can I be missing?

Fixed! I was just missing the option fallback: true in getStaticPaths as explained here

1 Like