Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
A clean Next.js + Sanity starter with visual editing, drag-and-drop page builder, live content updates, and AI-powered media support.
Clean Next.js + Sanity app is a boilerplate template that pairs a Next.js 16 frontend with a locally configured Sanity Studio, giving content editors live visual editing and a drag-and-drop page builder out of the box.
This template is a starter project that combines a Next.js 16 App Router frontend with Sanity Studio, an open-source React application that connects to a hosted Sanity dataset. It takes content created in Sanity Studio and renders it as a fast, SEO-friendly static website. The project is maintained by Sanity (sanity-io) and is initialized through the Sanity CLI with the command npm create sanity@latest -- --template sanity-io/sanity-template-nextjs-clean, producing separate /frontend and /studio directories.
Page, Post, Person, and Settings document types, then extend the schema in studio/src/schemaTypes/post.ts.Post document in the Studio, and it appears in the Next.js app and the Presentation tab immediately.npm run import-sample-data to load the provided sample-data.tar.gz into your Sanity project for instant content.Initialize the template with the Sanity CLI, run npm run dev to start both the Next.js app on localhost:3000 and the Studio on localhost:3333, then sign in with Google, GitHub, or email. After publishing documents, deploy the Studio with npx sanity deploy and deploy the Next.js frontend to Vercel or another host, setting the root directory to the frontend folder. The workflow for deployment to Vercel is documented in the template's README.
Yes, the template itself is open-source and free to use. Running it requires a Sanity project (which has a free tier) and your own hosting for the Next.js app.
The schema includes Page, Post, Person, and Settings document types. You can add more types by editing the schema files in the Studio directory.
Yes, Sanity's Presentation Tool and Live Content API allow real-time visual editing and live content delivery.
Run npx sanity deploy from the studio directory to deploy the Studio to Sanity's hosted infrastructure.
Yes, run npm run import-sample-data from the project root to import the bundled sample dataset.
