Skip to content
Tulos

Running locally

The scripts you'll use every day, and the local URLs.

Scripts

Command What it does
pnpm dev Development server with Turbopack
pnpm build / pnpm start Production build and server
pnpm lint ESLint
pnpm check-types TypeScript check
pnpm seed Import seed.tar.gz into the production dataset
pnpm seed:missing Import only the documents that are missing
pnpm typegen Regenerate sanity.types.ts after you change a schema

Local URLs

URL What
http://localhost:3000 Storefront
http://localhost:3000/studio Sanity Studio
http://localhost:3000/admin Admin panel

Testing payments locally

Run the Stripe webhook forwarder in a second terminal while pnpm dev runs:

stripe listen --forward-to localhost:3000/api/webhook

Copy the whsec_… secret it prints into STRIPE_WEBHOOK_SECRET and restart pnpm dev. Pay with 4242 4242 4242 4242, any future date and any CVC.