Blog with Built-in Content Editing
The Best CMS for Next.js
Sanity is a customizable, API-based CMS that pairs perfectly with Next.js
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!
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.
![Composite graphic showing people at a party, a map and a calendar with the date Oct 23th](https://cdn.sanity.io/images/3do82whm/next/f9fa592732745b014345af8a7197dfd714039380-1536x960.png?w=3840&q=75&fit=clip&auto=format)
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.
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.
- 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.
- 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.
- 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.
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](https://cdn.sanity.io/images/3do82whm/next/d07be294b0e72f17ea7146c099b3fd7f072738f9-800x450.webp?w=3840&q=75&fit=clip&auto=format)
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](https://cdn.sanity.io/images/3do82whm/next/f31379d654eabc2feb5c0226510fce1195a0b3bd-2680x1506.png?w=3840&q=75&fit=clip&auto=format)
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](https://cdn.sanity.io/images/3do82whm/next/85176d940afae77bec8cce702bd9bbd153a65358-800x452.webp?w=3840&q=75&fit=clip&auto=format)
Developers love working with Sanity and Next.js
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](https://cdn.sanity.io/images/3do82whm/next/e80c0e878cdeb036757f4b431a56ea4f8d0c05c8-3840x2160.png?w=3840&q=75&fit=clip&auto=format)
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](https://cdn.sanity.io/images/3do82whm/next/634bd76e8333f9c824a3f09ff563b5373bcfac3a-7684x4322.png?w=3840&q=75&fit=clip&auto=format)
I am using Sanity with Next.js and I don't think there is a more flexible CMS out there.
Ranked #1 CMS by developers
In the 2023 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 chart of the satisfaction scores in the netlify report showing sanity at the top](https://cdn.sanity.io/images/3do82whm/next/03777b89f55455c296628b2507a9e64133cd9d4b-2160x1400.png?w=3840&q=75&fit=clip&auto=format)
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.
![](https://i.ytimg.com/vi/bDVAQZVeebw/maxresdefault.jpg)
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](https://cdn.sanity.io/images/3do82whm/next/0201cc6bf286a58ef02512d93faf4bfc8d2047ff-1351x983.png?w=3840&q=75&fit=clip&auto=format)
Integrate Sanity with other technologies
Sanity can be integrated with any major framework, providing the flexibility need to have full control of your project.
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.