Sanity Preview Not Working: Causes and Fixes for Next.js
Sanity preview not working in Presentation or draft mode? Work through CORS origins, secrets, the draftMode cookie, stega and caching causes.
Tag archive
Sanity preview not working in Presentation or draft mode? Work through CORS origins, secrets, the draftMode cookie, stega and caching causes.
A web CMS should work for editors and developers without compromise. Here is the baseline I hold every platform against before recommending it.

Wire draft preview in Payload CMS + Next.js App Router with one route, one secret, and a hard rule: preview stays uncached even when the whole public site is cached.
A practical setup checklist for a CMS for marketing teams — roles, content models, preview, publishing workflow, and analytics wiring. Done right the first time.
Step-by-step guide to wiring Sanity Presentation plugin for live preview in Next.js App Router, with overlay clicks, GROQ live queries, and draft mode.
Step-by-step: Sanity draft mode preview in Next.js App Router with Vercel Edge Config for zero-downtime secret rotation. No content leaks.
Step-by-step: route handlers, cookie strategy, and Vercel Edge Config secret rotation for Sanity draft mode preview in Next.js. No leaks.
A production pattern for Sanity draft previews in Next.js that keeps published pages on the edge while editors see real-time changes.