> For AI agents: the complete Sanity documentation index is available at [https://www.sanity.io/docs/llms.txt](https://www.sanity.io/docs/llms.txt).

# Use Sanity with Next.js

Leverage the power of Next.js to serve your Sanity content.



#### The basics

[Start here](https://www.sanity.io/docs/nextjs/introduction)
Discover the different ways to integrate Next.js and Sanity

[Next.js Quick start](https://www.sanity.io/docs/next-js-quickstart)
New to Sanity and Next.js? Follow these step by step instructions to set up your site and studio.

[Work-ready Next.js](https://www.sanity.io/learn/track/work-ready-next-js)
Build a functional, content-driven and dynamic web application that best serves your end-users, fellow developers and content authors.

[Visual Editing with Next.js App Router](https://www.sanity.io/docs/visual-editing/visual-editing-with-next-js-app-router)
Set up visual editing between Sanity Studio and a Next.js App Router frontend, including the Sanity client, Draft Mode, Visual Editing, and Live Content.

#### Configuration

[Configure the next-sanity client](https://www.sanity.io/docs/nextjs/configure-sanity-client-nextjs)
Reference for Sanity client configuration in Next.js. Covers base config, environment setup, useCdn, feature layers, token handling, and per-request overrides.

[Embed Sanity Studio in Next.js](https://www.sanity.io/docs/nextjs/embedding-sanity-studio-in-nextjs)
Mount Sanity Studio as a route in your Next.js application using NextStudio. Covers auto and manual installation, App Router catch-all route, metadata, and route separation.

#### Query content

[Query content in Next.js](https://www.sanity.io/docs/nextjs/query-content-nextjs)
Use the next-sanity library to write typed GROQ queries with defineQuery and fetch content in App Router or Pages Router.

