Stack · Headless CMS
Next.js + Sanity.
Next.js + Sanity is the most flexible content-led marketing site stack. Real-time preview, code-first schemas, and great image handling.
CategoryHeadless CMS
Best forMarketing sites
Why together · 01
Why this combo works.
GROQ queries in server components, real-time draft preview, image transformations on the fly. Schemas in code keep migrations reviewable.
Setup
Install @sanity/client, define schemas in code, deploy Studio to /studio, fetch in server components.
Gotchas
- CDN cache TTL needs management — too long is stale, too short is expensive
- Image transformations cost — set sane defaults
- GROQ has a learning curve vs SQL
- Preview mode requires careful server/client coordination
Building this stack?
We've shipped it.
Default for content-heavy marketing sites. If you're going to ship on this stack, brief us. We can save you a few weeks of gotchas.
Brief us