Minimalist template of a Next.js website managed from Sanity.
npm run dev
Copy .env.example
and fill it up with your Sanity project variables:
cp .env.example .env
Alternatively, if you're deploying on Vercel, run the following:
vercel link
vercel env pull .env
npm i