The Sanity + Next.js Guide

Everything I've written on building with Sanity CMS and the Next.js App Router — grouped by topic, from getting started to Studio customisation. 54 articles, all from real production builds.

01

Getting started

Set up the stack, typed queries, and a working Studio.
02

GROQ & data modelling

Query and shape content without waterfalls.
API CMS explained: what it's good at and where it breaks downWhat a web CMS actually owes you: my baseline standardSanity image-url hotspot not working: four causes and fixesSanity vs Directus for Next.js in 2026: An Honest ComparisonSanity vs Hygraph 2026: An Honest Side-by-Side for Next.js TeamsHow I Migrate WordPress to Sanity + Next.js: A Technical WalkthroughHow to Vet a Senior Sanity CMS Developer: A Buyer's GuideSanity Custom Validation Rules: A Practical GuideSanity Structure Builder: Custom Ordering & GroupingSanity vs Strapi in 2026: an honest side-by-side comparisonAdvanced GROQ Queries: Joins, Coalesce & Array FlatteningSanity Portable Text Custom Components in Next.jsSanity TypeGen: Fully Typed GROQ Queries in TypeScriptSanity CMS vs Contentful for Next.js Projects: An Honest ComparisonSanity Slug Validation: Block Duplicate Slugs Before PublishGROQ Conditional Projections: Cut Query Payload by 60%Avoiding N+1 Queries: Modeling Sanity References in RSCMulti-Locale Navigation in Sanity Without Bloating QueriesStructuring Sanity Schemas to Avoid Query WaterfallsShaving 140 kB Off a Next.js Bundle: Lazy-Load Portable Text
03

Draft mode & preview

Live preview and secure draft flows at the edge.
04

Images & media

Sanity's image pipeline, CLS, and video.
05

Revalidation & webhooks

Keep published content fresh with ISR.
06

Internationalization

Multi-locale content and navigation.
07

Sanity Studio & workflow

Shape the Studio around how editors actually work.

Want this built, not just documented?

I take on Sanity CMS + Next.js builds and migrations for startups and agencies — fixed price, staging URL from day one.