Skip to content
Sanity
  • Content operations

    • Sanity Studio
    • Media Library
    • Canvas
    • Content Agent
    • Content Releases
    • Insights
    • App SDK

    Content backend

    • Content Lake
    • Live CDN
    • Compute
    • Agent Actions
    a white background with orange and black dots on it

    The only platform powering content operations

    Start building for free
    Start building for free
  • Use Cases

    • Headless CMS
    • E-commerce
    • Marketing
    • Media and publishing
    • PIM
    • LMS
    • Build your own

    Users

    • Developers
    • Content Editors
    • Product Owners
    • Business Leaders
    a man sits on a fence next to a horse

    Tecovas strengthens their customer connections

    Read the story
    Read the story
  • Build and Share

    • Sanity 101New
    • Sanity Learn
    • Frameworks
    • Templates
    • Tools and plugins
    • Schemas and snippets
    • Join our community

    Insight

    • Blog
    • Events
    • Customer stories
    • Guides
    A dark-themed collage showcasing branded merchandise including t-shirts, a cap, mug, tote bag, and socks, alongside various digital design elements and logos, prominently featuring "Sanity" branding.

    Grab your gear: The official Sanity swag store

    Read Grab your gear: The official Sanity swag store
  • Docs
  • Enterprise
  • Pricing
Sanity

  • Content operations

    • Sanity StudioHeadless CMS
    • Media LibraryCentralized asset management
    • CanvasAI-assisted, free-form writing
    • Content AgentAI for content operations
    • Content ReleasesStack and stage content updates
    • InsightsUnderstand content performance
    • App SDKRapidly build content apps

    Content backend

    • Content LakeThe content optimized database
    • Live CDNSimple, scalable, real-time
    • ComputeEvent handlers for content changes
    • Agent ActionsBuilt-in, content aware AI
  • Use Cases

    • Headless CMS
    • E-commerce
    • Marketing
    • Media and publishing
    • PIM
    • LMS
    • Build your own

    Users

    • Developers
    • Content Editors
    • Product Owners
    • Business Leaders
  • Build and Share

    • Sanity 101NewA quick series covering key areas of Sanity to get you up to speed.
    • Sanity Learn
    • Frameworks
    • Templates
    • Tools and plugins
    • Schemas and snippets
    • Join our community

    Insight

    • Blog
    • Events
    • Customer stories
    • Guides
  • Docs
  • Enterprise
  • Pricing
Get startedContact Sales
Join our community on Discord
Subscribe to our newsletter

Products

  • Sanity Studio
  • Media Library
  • Canvas
  • Content Agent
  • Content Releases
  • Insights
  • App SDK
  • Content Lake
  • Live CDN
  • Compute
  • Agent Actions
  • AI Assist
  • Use cases

Resources

  • Docs
  • Sanity 101
  • Sanity Learn
  • Tools and plugins
  • Frameworks
  • Templates
  • Schemas and snippets
  • Guides
  • Headless CMS explained
  • Resource library
  • Explainers
  • Enterprise CMS guides
  • Headless CMS Guides
  • Enhancing your CMS with AI
  • Compare Sanity
  • Glossary
  • Pricing

Company

  • Contact
  • Blog
  • Shop
  • Events
  • Careers
  • Changelog
  • Customer Stories
  • Agency Partners
  • Technology Partners

Trust and compliance

  • Privacy policy
  • Terms of service
  • Accessibility statement
  • Transparency statement
  • Security and compliance
  • Open Source Pledge

Keep in touch

© SANITY 2026

OSL, NOR (CET)

SFO, USA (PST)

Loading system status...
Change Site Theme
Next.js CMS

The Best CMS for Next.js

Sanity is a customizable, API-based CMS that pairs perfectly with Next.js

Watch demoGet started

Teams powered by Sanity + Next.js

One stack, all React

Sanity and Next.js are both written in React. Use all the React packages and integrations you know and love. Anywhere you need to. Backend to frontend. All React.

Data where you need it

Sanity pairs perfectly with Next.js data fetching and rendering patterns. SSG, SSR, ISR, RSC — it’s all possible. Plus we have the docs and examples you need to get it done!

Data how you want it

Use Sanity’s powerful query APIs to filter, sort, and shape your data on the server. Give your frontend exactly the data it needs! Real- time or build time.

Live preview

No more waiting for slow builds. Setup previews for your Next.js site directly inside of Sanity so you can catch that typo before hitting publish!

Official integration

Sanity has an official toolkit for NextJS built to make integrating Next.js and Sanity a breeze. We take care of the hard stuff so you can focus on the fun stuff!

Get a boosted free trial

Start building with Sanity and Next.js

Sign up with the link below or apply the coupon `nextjsconf24` to get an extended 60-day trial of Sanity's paid features.

Get started→
Composite graphic showing people at a party, a map and a calendar with the date Oct 23th
→Browse all templates

Fully configured Next.js templates

With Sanity's Next.js templates, you can deploy a full-stack content app in a few short clicks. Be up and running in 30 seconds with our Netlify and Vercel integrations.

Blog with Built-in Content EditingBlog with Built-in Content Editing
Personal Website with Built-in Content EditingPersonal Website with Built-in Content Editing
Clean Next.js site with Sanity StudioClean Next.js site with Sanity Studio

The benefits of a Next.js CMS

Why you should consider Sanity for your project.

Next.js has become the React world's leading framework in large part because its developer experience is so ergonomic.

With Next.js 13 and the addition of React Server Components and the app router, Next.js is the easiest way to develop fully featured, full-stack applications in the world today.

To really feel the impact of the increased speed and productivity of your frontend framework on your business, however, you need a back end with a similarly ergonomic design.

That's why a high-powered React content platform like Sanity is such a force multiplier for your content site. No bottlenecks across your entire stack–just creating, publishing, and iterating.

  1. Develop and ship faster. When you can write server code alongside your frontend's components, your team can iterate faster. Make a change to your app and update the content to reflect the change in a few short clicks.
  2. Hire better. When your content platform and your front end framework are written with the same React.js library, all you need are a few good devs to iterate effectively across your entire stack.
  3. Big, helpful communities. Take advantage of using the most popular framework by relying on large, supportive communities to create and maintain plugins, starters, and plentiful tutorials. The Sanity community is a welcoming place for developers of all backgrounds and experience levels.
Want to start with a template?→Get started now

Spin up the Next.js Starter Template in 5 minutes

Get up and running quickly. We’ve got everything configured and ready for you to jump in and make it your own.

Typescript:

Type safety and generation out of the box.

→Learn More

Visual Editing:

See and feel the content you’re editing, right in your frontend.

→Learn More

Live Content API:

Display and respond instantly to content changes.

→Learn More

Caching:

Queries and mutations, fully compatible with the Next.js cache.

→Learn More

Tailwind CSS:

The utility-first CSS framework choice of developers.

→Learn More
We have a course for that

Work-ready Next.js course

Learn and build a functional, content-driven and dynamic Next.js application that best serves your end-users, fellow developers, and content authors.

Take the free course
Track • Sanity Learn

Work-ready Next.js

Build a functional, content-driven and dynamic web application that best serves your end-users, fellow developers and content authors.

→View track
Course • Sanity Learn

Content-driven web application foundations

Combine Sanity and Next.js and deploy to Vercel via GitHub to get the fundamentals right. Powering a fast and collaborative development and content editing experience.

→View course
Course • Sanity Learn

Controlling cached content in Next.js

Creating a high performance web application for fast loading depends on caching. Learn how to implement a caching strategy you can understand, debug and depend on.

→View course
Course • Sanity Learn

Integrated Visual Editing with Next.js

The ultimate upgrade for content authors is to have absolute confidence in the impact of their work before they press publish – as well as the tools to rapidly find and update even the most minor pieces of content.

→View course
Course • Sanity Learn

Build landing pages with Next.js

Give your content authors the creative freedom they need to produce landing pages by assembling individual blocks while still benefitting from structured content.

→View course
Course • Sanity Learn

SEO optimized content with Next.js

SEO doesn't have to be complicated. It's a matter of taking content you've already responsibly structured with Sanity and rendering it in the format and places that search engines expect. Complete this course to improve how robots and humans interact with your content with Sanity and Next.js

→View course
Builder Talk

How loveholidays cut the cost of launching new markets by 97%

See how AI-powered translation and automated content workflows unlocked £300k cost savings and lightning-fast market expansion for travel company loveholidays:

  • AI translations are automated
  • Editors compare the original document to the translated one in one view
  • The translation architecture automatically adapts to schema changes
  • A new domain and market can be introduced without code
Watch the recording→
A grid of blue-toned hotel offers displaying names, locations, star ratings, and discounted prices.
SANITY STUDIO

Ready for React 19 and Next.js 15

The new React 19 and Next.js 15 releases are driving the future of JavaScript based web development with the introduction of React Server Components and the app directory.

Sanity Studio is ready for this dynamic future. It includes full TypeScript coverage, total UI customization, React 19 support, improved accessibility, better search and more.

A screenshot of code in the Sanity Studio
THE RIGHT TOOLS

Best in class developer experience

Give everyone on your team something to celebrate. Next.js puts the essentials of modern React development at your fingertips. With Sanity, get a backend that can keep up with it, and enjoy a performant, user-friendly CMS with the extensibility of a managed database.

A screenshot of Sanity Studio
NEXT-SANITY TOOLKIT

Get a 100-hour head start

Use our official next-sanity toolkit to supercharge your Next.js project. It will help you to implement live previews, image fetching, webhook validation, and more!

When you pair Next.js and Sanity you are making a choice with official support and guaranteed long-term maintenance.

We are building the happy path for you!

A screenshot of Sanity Studio
RATED #1 BY DEVELOPERS→Read more reviews about Sanity and Next.js

Developers love working with Sanity and Next.js

I started using Sanity for a friend's startup project. As I am using react components. Loving it! It allows developers to define a simple schema for content that is easily deployed using command line interface.

A portrait of Zahra Dargahi
Zahra Dargahi
Senior Frontend Developer @ IAG
Read tweet→

After testing Strapi and Prismic, I made the choice to focus on Sanity. Their documentation was simple enough to ensure a quick start, the existing React or NextJS libraries made my job a lot easier.

A portrait of Rayed Benbrahim
Rayed Benbrahim
Global Partner Solutions Architect Lead for Capgemini
Read review→

I'm using Sanity with Next.js, and I just tell clients "this is what I work with, and what I can guarantee lets me build the best products".

A portrait of Eivind Lindbråten
Eivind Lindbråten
Full Stack Developer @ Mint
Read tweet→
DO-IT-ALL API

Data how and where you need it

The Sanity API pairs perfectly with Next.js data fetching patterns from the original getServerSideProps to the brand-new app directory.

Use GraphQL or the GROQ query language to intelligently build queries that can filter, sort and transform your data on the server.

*[_type == "cms" && awardWinner == true]

A screenshot of a query in the Sanity Studio
LIVE PREVIEWS

Preview your content before publishing

With your own repo, studio, and front end published, wire up Next.js and Sanity's real-time serverless previews and see exactly what your content looks like before it's published.

A screenshot of live preview in the Sanity Studio

I am using Sanity with Next.js and I don't think there is a more flexible CMS out there.

A portrait of Max Karlsson
Max Karlsson
Frontend Tech Lead at Culture Kings

Ranked #1 CMS by developers

In the 2024 Netlify State of Web Development report, Sanity has the highest satisfaction score for content platforms.

It's the fastest, most flexible way to structure and deliver content to digital products.

a graph showing the percentage of developers who would prefer to use Sanity as a CMS is higher than other systems

A dream stack for beginner and advanced devs alike

There's no better stack to learn the basics of modern web development.

  • Next abstracts the hardest bits of front-end app dev, while still leaving you full freedom.
  • Sanity removes the headaches of devops, self-hosting, and rigid content models and gives you total creative control.

Learn more with our own Sanity crash course.

NEXT.JS RESOURCES

Take advantage of a large community of developers

Sanity offers a wide range of integrations, guides, templates, plugins and themes through the Sanity Exchange. There you'll find out how to add user auth to across your React app with a plugin, deploy to Vercel straight from your CMS or style your site with Tailwind.

Find resources created by the Sanity team and the community to easily customize your workflow with Next.

A screenshot of Sanity's Next.js resources page
CMS INTEGRATIONS

Integrate Sanity with other technologies

Sanity can be integrated with any major framework, providing the flexibility need to have full control of your project.

  • React logo in blue
    React

    →React

  • Next.js logo
    Next.js

    →Next.js

  • Angular logo
    Angular

    →Angular

  • Node.js logo
    Node.js

    →Node.js

  • GraphQL logo
    GraphQL

    →GraphQL

  • Vue.js logo
    Vue.js

    →Vue.js

  • Gatsby logo
    Gatsby

    →Gatsby

  • Hugo logo
    Hugo

    →Hugo

  • Remix logo
    Remix

    →Remix

  • Javascript logo
    Javascript

    →Javascript

  • Nuxt.js

    →Nuxt.js

  • Astro logo
    Astro

    →Astro

  • Sveltekit logo
    Sveltekit

    →Sveltekit

  • Eleventy logo
    Eleventy

    →Eleventy

Start building with Sanity and Next.js

Generous quota included. Pay-as-you-go for users, usage and features on all plans. Host a DIY studio for free, or serve enterprise content with confidence.

Get startedContact Sales
⚡ Build fast. Edit live. Ship instantly.

From zero to production with Next.js starter

✅ Next.js 15 App Router for fast performance
✅ Live previews with real-time visual editing
✅ Drag-and-drop page builder with dynamic components

START BUILDING NOW→