Would like to change the URL of my deployed sanity studio. Will sanity undeploy affect the dataset at all? Or only the URL?

2 replies
Last updated: Sep 14, 2020
Quick question — have never done this before. Would like to change the URL of my deployed sanity studio. I know you can do
sanity undeploy
 — will that affect the dataset at all? Or only the URL?
AI Update

Good news! Running sanity undeploy will only affect the URL — it won't touch your dataset at all.

According to the Sanity deployment documentation, the sanity undeploy command is used to change the hostname later or remove the Studio from the web. When you run it, you can choose a new hostname the next time you deploy.

Your data lives in the Content Lake (the dataset), which is completely separate from how your Studio is hosted. The undeploy command only removes the deployed Studio files from the *.sanity.studio URL — it doesn't delete, modify, or affect your content in any way.

So you're safe to:

  1. Run sanity undeploy to remove the current Studio URL
  2. Run sanity deploy again to choose a new hostname

Your dataset will remain completely untouched throughout this process!

Show original thread
2 replies
Hi Ben - this will just affect the deployed studio (URL), not the dataset, schemas, etc. 🙂
amazing thank you peter!

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?