How AI is powering better personalization in e-commerce [with Vercel]. Sign up now

Monorepo vs multiple repos: Best approach for Sanity Studio structure?

5 repliesLast updated: Nov 29, 2025

hey everyone, i wanted to know what’s your best approach to structuring your repo for a studioI am redoing my portfolio site and i currently have the webView and the studio in the same repo but i feel like that’ll be an issue if i decide to redo my site
I would really like to know what approach you normally use when structuring monorepo or multiple
AI Update

Great question! This is something a lot of Sanity developers think about. There's no single "right" answer, but here's what the community generally does:

Two Main Approaches

1. Monorepo (Studio + Frontend Together)

This is actually pretty popular in the Sanity ecosystem. You'd have a structure like:

my-project/
  studio/
  web/

The main benefits are:

PNPM workspaces are a popular standard for this. You'd have a root package.json and pnpm-workspace.yaml that defines your apps. Tools like Turborepo can help with build orchestration too.

2. Separate Repos

This addresses your exact concern about redoing your site! Many developers prefer this because:

Your Studio would be in one repo, and you'd just connect to it via the Content Lake from whatever frontend(s) you build. This is totally valid and some developers prefer this approach.

My Take

Given that you mentioned wanting to redo your site in the future, separate repos might be the better fit for you. Your content and content model live in the Studio repo, and any frontend just connects to your Sanity project via the API. This means you can:

The Studio is really just your content editing interface and schema definition. Once it's set up, you don't change it that often, so keeping it separate from your frequently-changing frontend makes sense.

You can always move to a monorepo later if you find yourself constantly updating both together, but starting separate gives you maximum flexibility for your portfolio evolution.

Show original thread
5 replies

Was this answer helpful?

Sanity – Build the way you think, not the way your CMS thinks

Sanity is the developer-first content operating system that gives you complete control. Schema-as-code, GROQ queries, and real-time APIs mean no more workarounds or waiting for deployments. Free to start, scale as you grow.

Related contributions