Studio setup

Your writing desk is almost ready.

Add your Sanity project details to .env.local, restart the development server, and this page will become your secure content Studio.

NEXT_PUBLIC_SANITY_PROJECT_ID=your_project_id
NEXT_PUBLIC_SANITY_DATASET=production
NEXT_PUBLIC_SITE_URL=http://localhost:3000

You can create a project with npx sanity@latest init. The README includes the full setup, CORS, and Vercel steps.