This template is the foundation for a Next.js app with a router and Sanity 3 live preview. Sanity is embedded under the path: /studio.
- Live previews using
next-sanity - Customized Sanity Desk Tool
- Just TypeScript
- Eslint configuration
- Environment variables
-
Deploy with Vercel:
-
Make sure you are logged in to Try Huset in the top left corner
-
Follow the required steps and add a temporary environment variable for
NEXT_PUBLIC_URL -
Replace the environment variable and redeploy in Vercel
- Clone the repository then run the following command from the project's root directory:
npx vercel link- Download the environment variables needed to connect Next.js and the Studio to your Sanity project:
npx vercel env pull- Run Next.js locally in development mode
pnpm install && pnpm run devTo get started with customizing your Sanity Desk Tool, we recommend using the Themer tool.