.env.local.example
Set these on your host before deploying. Each platform has an “Environment Variables” section in the deploy flow.
NEXT_PUBLIC_VERCEL_GIT_REPO_OWNER
Defaults, used by ./intro-template and can be deleted if the component is removed
NEXT_PUBLIC_VERCEL_GIT_PROVIDER
NEXT_PUBLIC_VERCEL_GIT_REPO_SLUG
NEXT_PUBLIC_SANITY_PROJECT_ID
Required, find them on https://manage.sanity.io
NEXT_PUBLIC_SANITY_DATASET
NEXT_PUBLIC_SANITY_API_VERSION
see https://www.sanity.io/docs/api-versioning for how versioning works
SANITY_API_READ_TOKEN
secret
SANITY_API_WRITE_TOKEN
secret
Optional, useful if you plan to add API functions that can write to your dataset
NEXT_PUBLIC_SANITY_PROJECT_TITLE
Optional, can be used to change the Studio title in the navbar and differentiate between production and staging environments for your…
SANITY_REVALIDATE_SECRET
secret
Optional, check the comments in pages/api/revalidate.ts for instructions on how to set it up