Joint session with Vercel: How to build intelligent storefronts (May 15th) →

NextJS Preview Feature with Sanity Setup Help

30 repliesLast updated: Nov 29, 2025

Happy Friday šŸ˜Žanyone experienced with the preview feature on NextJS please?
I followed this (awesome) guide

https://www.sanity.io/guides/nextjs-live-preview
AI Update

Happy Friday! šŸ˜Ž

I'd be happy to help with the Next.js live preview feature! That guide you linked is indeed excellent for setting up Visual Editing with the Pages Router.

What specific part of the preview setup are you having trouble with? Here are some common areas where people need help:

Common issues with Next.js draft mode and live preview:

The key architecture is:

The guide walks through creating separate "preview" components (like PostsPreview.tsx) that use useLiveQuery to wrap your regular components, which is a clean pattern for managing the preview state.

If you can share what specific error message or unexpected behavior you're seeing, I can give you more targeted help! Common symptoms include:

Show original thread
30 replies

Was this answer helpful?

Sanity – Build the way you think, not the way your CMS thinks

Sanity is the developer-first content operating system that gives you complete control. Schema-as-code, GROQ queries, and real-time APIs mean no more workarounds or waiting for deployments. Free to start, scale as you grow.

Related contributions