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

How to deploy Sanity & Next.js monorepo with separate folders to Vercel?

13 repliesLast updated: Nov 29, 2025

Hello thereHow do I deploy Sanity & NextJS (to Vercel) when they live in a top level folder side by side? ie

- my-project
-- studio
-- web
AI Update

When deploying a monorepo with Sanity Studio and Next.js in separate folders to Vercel, you'll need to configure each project individually. Here's how to handle your structure:

Deploying the Structure

For your setup:

my-project/
  ├── studio/
  └── web/

You'll create two separate Vercel projects, each pointing to the same GitHub repository.

Studio Deployment

Next.js (Web) Deployment

Important Notes

This approach works well for learning and smaller projects. For production monorepos, consider using tools like Turborepo for better dependency management and build caching.

Show original thread
13 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