SvelteKit website with a same-repo Sanity Studio.
Use the Node version in .nvmrc:
nvm use
npm installCopy .env.example to .env for local Sanity-backed development:
PUBLIC_SANITY_PROJECT_ID=saoj8gx9
PUBLIC_SANITY_DATASET=production
PUBLIC_SANITY_API_VERSION=2026-06-01
SANITY_STUDIO_PROJECT_ID=saoj8gx9
SANITY_STUDIO_DATASET=productionnpm run devRun Sanity Studio locally:
npm run studio:devnpm run check
npm run buildYou can preview the production build with npm run preview.
This project uses @sveltejs/adapter-vercel and the local Vercel CLI.
Link this checkout to the existing Vercel project:
npm run vercel:pullRun the Vercel dev server:
npm run vercel:devDeploy a preview:
npm run deploy:previewDeploy production:
npm run deploy:prodSet these environment variables in Vercel for preview and production:
PUBLIC_SANITY_PROJECT_ID=saoj8gx9
PUBLIC_SANITY_DATASET=production
PUBLIC_SANITY_API_VERSION=2026-06-01