✨Discover storytelling in the AI age with Pixar's Matthew Luhn at Sanity Connect, May 8th—register now

Is it possible to connect @sanity/client to local studio when developing?

5 replies
Last updated: Sep 9, 2020
Hello! Quick question: Is it possible to connect
@sanity/client
to local studio when developing? I want to try out some schema changes before deploying it.
Sep 9, 2020, 3:43 PM
Is this what I want to learn and use or is there some best practise way to test schema changes while developing? https://www.sanity.io/blog/getting-started-with-sanity-as-a-headless-cms#migrating-your-content-is-easy-c204f379a409
Sep 9, 2020, 3:48 PM
Exporting and importing your dataset can make a lot of sense for testing in this way. You’ll want to make a “development” dataset on your project and when you’re working locally, you can use a different dataset (https://www.sanity.io/docs/sanity-json#environments-933842c25dea )
When you’ve got that, you can import your production data into the development dataset to have a close approximation to your live data before testing your schema
Sep 9, 2020, 5:42 PM
Exporting and importing your dataset can make a lot of sense for testing in this way. You’ll want to make a “development” dataset on your project and when you’re working locally, you can use a different dataset (https://www.sanity.io/docs/sanity-json#environments-933842c25dea )
When you’ve got that, you can import your production data into the development dataset to have a close approximation to your live data before testing your schema
Sep 9, 2020, 5:42 PM
That makes sense! Awesome, I'm gonna try it and also set up nightly backups to S3 and I'll sleep better 😄 Thanks! 🙏
Sep 9, 2020, 6:02 PM
Data Redundancy = better sleep 😄
Sep 9, 2020, 6:03 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?