Deploying your Studio

Your Sanity Studio is locally configured, though it writes to Sanity's hosted Content Lake. As you continue to build your Studio you'll want to put it into the hands of your content authors.
You don't have to deploy the Studio to Sanity's hosting, but it is increasingly beneficial to, so this is the recommended home for your Sanity Studio.
# inside apps/studio/pnpm run deploy
You will need to create a unique hostname for your Studio. Once the deployment is complete you can visit and share your sanity.studio
URL.
The sanity deploy
command will not only build and deploy your Studio to our hosting, but also deploys an up to date version of your schema types in a way that other parts of the Content Operating System will use. Features such as AI Agent Actions.
As a React SPA, Sanity Studio can be hosted in a number of ways.
As an SPA you could deploy the Sanity Studio application to almost any hosting provider (such as Vercel or Netlify) and add a CORS origin to the project in Manage.
This can be beneficial for creating "preview builds" of Sanity Studio before deploying configuration changes.
As a React component, Sanity Studio can be imported from the sanity
package and rendered at a route (such as /studio
) in your full stack application (such as Next.js or Astro)
The drawback to embedded studios is a slower development environment and not being able to use the auto updating feature.
For both alternatives you will need to manually configure other deployment features such as hosted schemas—or need to run sanity deploy
as part of your build process.
With all this considered, sanity deploy
is the preferred method to get the best experience with all of Sanity's features.
In a production project you will likely want to automate the deployment process. For details on how to structure a Sanity project for maximum efficiency we have a separate course of lessons.
You have now initialized, lightly configured and deployed your Sanity Studio. But there is so much of the configuration you have not yet interacted with and even a small amount of additional effort will greatly improve the editorial experience.
If you have the time, it is recommended you move onto the Studio excellence course next, before returning to complete the rest of this course. The following lessons in this course will assume you have completed it.
Otherwise if you're racing to the finish, let's move onto the next lesson and look at getting your content out of Sanity and into the world.