Joint session with Vercel: How to build intelligent storefronts (May 15th)

Sanity Starter

Sanity starter with localization utils, presentation tool and types generation

By Display Studio


README
Logo

Sanity Starter

A starter template for Sanity projects with built-in localization utilities, presentation tool, and automatic types generation.


Features

Plugins Used

Scripts

  • dev: Start Sanity Studio in development mode
  • build: Build the Studio and generate types
  • deploy: Deploy the Studio
  • generate-types: Extract schema and generate TypeScript types

Getting Started

  1. Install dependencies:
    bun install
  2. Set .env variables:
    SANITY_STUDIO_ID="ID_HERE"
    SANITY_STUDIO_PREVIEW_URL="STUDIO_URL_HERE"
    SANITY_STUDIO_DATASET="production"
  3. Start the development server:
    bun run dev
  4. Generate types:
    bun run generate-types

License

MIT