Skip to content

display-design-studio/sanity-starter

Repository files navigation

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

About

Sanity starter with localization utils, presentation tool and types generation

Topics

Resources

License

Stars

Watchers

Forks