Does Sanity support multisites?

2 replies
Last updated: Jan 21, 2021
user Y
Do Sanity support multisites?
AI Update

Yes, Sanity has excellent multisite support! There are several ways to architect a multisite setup depending on your needs:

Using Workspaces

Workspaces are Sanity's primary feature for managing multiple sites within a single Studio instance. Each workspace can have its own dataset, schema, tools, and configuration while sharing the same codebase. This is perfect for:

  • Multiple brands or markets: A travel company can create workspaces for each geographic market, letting local teams manage region-specific content while maintaining consistent structure
  • Multi-tenant applications: Different clients can have isolated workspaces with their own content
  • Environment separation: Development, staging, and production can each have their own workspace

The beauty of workspaces is that you get a dropdown switcher in your Studio interface to move between different sites, all while maintaining one codebase and deployment.

Using Datasets

Datasets are isolated collections of content within a Sanity project. Each dataset can have completely different schemas and content models. You can:

  • Configure your Studio to connect to different datasets using environment variables
  • Deploy separate Studio instances for different sites (requires self-hosting for multiple deployments)
  • Use datasets for complete content separation between sites

The number of datasets available depends on your plan - Free plans include 2 datasets, while paid plans offer more with add-ons available for enterprise needs.

Cross-Dataset References (Enterprise)

If your sites need to share content, Cross Dataset References (available on Enterprise plans) let you reference documents across different datasets. This is powerful for:

  • Creating a single source of truth for shared content (like product catalogs or brand assets)
  • Centralized asset management through the Media Library
  • Sharing content across multiple sites while maintaining dataset separation

Multi-Tenancy Implementation

Sanity has a comprehensive multi-tenancy guide that covers sophisticated setups including per-workspace permissions, conditional field visibility, and access control patterns.

So yes, Sanity absolutely supports multisites with flexible architecture options that scale from simple two-site setups to complex multi-tenant platforms with dozens of sites!

Show original thread
2 replies
Yes πŸ™‚
Since it's API-based, you can connect any amount of sites and applications to a project/dataset.

E.g.
https://sanity-io-land.slack.com/archives/C9YQ161LZ/p1611222086007100
Yes πŸ™‚
Since it's API-based, you can connect any amount of sites and applications to a project/dataset.

E.g.
https://sanity-io-land.slack.com/archives/C9YQ161LZ/p1611222086007100

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.

Was this answer helpful?