Unlock seamless workflows and faster delivery with our latest releases – get the details

Creating and switching between production and staging datasets in Sanity, and utilizing data between them.

4 replies
Last updated: Jun 12, 2023
Hi everyone,
Would like to create 2 datasets in a project, one - "production" and other- "staging".
How can I create Studios simultaneously for both and switch between them on Studio (on the Web/without using CLI)?

When create a data at staging, how can I utilize them at production?
Imagine that edit blog post at staging and then open it to the public at production.
Jun 11, 2023, 11:57 PM
Many thanks!!!!Perfect.

So, appreciate if you could show how to reuse the post in staging, as well. Do we have a method to upload/edit rawjson on Studio?
Jun 12, 2023, 9:13 AM
you could perhaps have an attribute that "opens" it to the public and a webhook that, once the attribute is "true" (using GROQ filters) you add/update the document into prod?
Jun 12, 2023, 9:35 AM
Will investigate around there.Thanks a lot.
Jun 12, 2023, 12:54 PM

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?