Clean Starter

Astro + Sanity with an embedded Studio and a Vercel-ready server build.

Use this repo as a starting point for content-driven Astro sites. The Sanity Studio lives at /studio, Tailwind is wired in, and the starter ships with a minimal post schema so the Studio is useful on day one.

Starter includes

  • Astro 6 server output with the Vercel adapter
  • Embedded Studio at /studio
  • Tailwind CSS v4 via the Vite plugin
  • Bun-first scripts plus Astro, ESLint, and Prettier checks
  • Sanity starter schema with post

1. Configure env

Copy .env.example to .env and set your Sanity project ID and dataset.

2. Start the app

Run bun run dev and open both the site root and /studio in the same app.

3. Allow Studio auth

Add http://localhost:4321 as a CORS origin with credentials when Sanity prompts you.