One repository, two Netlify sites. The website and the Studio deploy separately, and a commit that only touches one of them doesn’t rebuild the other.
Two datasets
Production deploys read the production dataset, previews and branch deploys read development. Editors can try things in a preview without touching the live site.
When the test content gets stale, pnpm studio:sync-prod-to-dev copies production into development. It asks before it overwrites anything.
The Studio on Netlify
With a deploy token in SANITY_AUTH_TOKEN, every production deploy of the Studio registers its address and its schema with Sanity. The Studio then shows up in the Sanity dashboard. If you prefer Sanity’s own hosting, pnpm studio:deploy puts it on a sanity.studio address instead.
From publish to live
A webhook from Sanity tells the site which kind of document changed. The site clears those pages from the cache, and the next visitor gets the new version.
This demo
This demo runs exactly that way: two Netlify sites built from the variant/document-level branch, one Sanity project, one webhook.