👀 Our most exciting product launch yet 🚀 Join us May 8th for Sanity Connect

Recovering lost schema files in Sanity.io project

6 replies
Last updated: Feb 1, 2023
Hello. We have been given a sanity project to work on, but the source code is hopelessly out of date. The schema files we have been given do not match the live, production setup. The original developer may be MIA for good -- is it possible to get / generate / recover the existing version of the schema files / source code from the production server?
Feb 1, 2023, 12:14 AM
Man, that’s frustrating! Luckily, you can try this method to recover your lost schema from a deployed version of your Studio.
Feb 1, 2023, 12:15 AM
already tried that -- and it's so fractured it's unusable
Feb 1, 2023, 12:16 AM
Bummer, that’s the only method I’m aware of to recover stuff.
Feb 1, 2023, 12:17 AM
surely, when a command like
sanity deploy
gets called the files get sent to sanity? the studio platform needs the schema files to render it all out, no?
Feb 1, 2023, 12:19 AM
Yes, and I shared the method that you can use to recover them from the bundle that’s created by deploying your Studio. We don’t get ‘sent’ your schema files.
Feb 1, 2023, 4:12 PM
Ok thank you. This could be a handy feature BTW. If you lose your schema files, you are really in trouble.
Feb 1, 2023, 6:35 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?