The Studio is mounted inside the app at /studio. Sign in with your Sanity account to use it.
Content types
| Type | What it holds |
|---|---|
| Product | Name, slug, images, intro, description, price, discount, categories, product base, stock, rating, status, type |
| Category | Title, slug, description, image |
| Sale | Title, description, badge, image, type (offer, best deal, gift), products, coupon code, discount, active |
| Store | Store locations for the store locator |
| Order | Created at checkout; payment details are filled in by the Stripe webhook |
| Address | Customers’ saved shipping addresses |
| Subscriber | Newsletter sign-ups |
| Contact | Messages from the contact page |
Product fields that control the store
- Product type (
variant): T-shirt, jacket, pants, hoodie, short or others. Drives the home page tabs and the shop’s type filter. - Product base: offers, deals, gift or others. Products marked deals appear on the Deals page and in the home page deals section.
- Status: new, hot or sale. New products appear in the search box before the shopper types.
- Price and discount: see Storefront → Prices.
Draft previews
The Studio’s Presentation tool shows your unpublished changes on the real store. It uses /api/draft-mode/enable and the SANITY_API_READ_TOKEN. Outside the Studio, a Disable Draft Mode button turns previews off.
After changing a schema
Schemas live in sanity/schemaTypes. After you change one, regenerate the TypeScript types:
pnpm typegen