👋 Next.js Conf 2024: Come build, party, run, and connect with us! See all events

Isolating datasets in different studios using Spaces in Sanity.io

3 replies
Last updated: Jul 21, 2020
Hello! How would you go about deploying several studio’s with different datasets in the same project? More specifically we want to isolate the development, testing, and production datasets in different studios with different URL's, if possible. Cheers.
Jul 21, 2020, 8:37 AM
Hi Mikkel, in this case you’d at least need to self-host the studios, as the
sanity deploy
command would only work with a single one. Have you looked into keeping everything in a single studio but using something like Spaces to toggle between the different datasets? https://www.sanity.io/docs/spaces
You can even customise the studio UI based on the active dataset or further tailor what people see.
Jul 21, 2020, 10:03 AM
Thank you very much
user M
! This worked out perfectly for us. Hopefully this feature will be implemented as a standard in Sanity in the future..? 🎉 Cheers!
Jul 21, 2020, 10:52 AM
Happy this gives you a more straightforward solution! 🙂 Indeed, it’s likely to become a standard feature but there might be some changes along the way in how exactly it’s implemented. It’s stable though, as there are plenty of projects already using it at the moment.
Jul 21, 2020, 10:54 AM

Sanity– build remarkable experiences at scale

Sanity is a modern headless CMS that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.

Was this answer helpful?