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?
Man, that’s frustrating! Luckily, you can try this method to recover your lost schema from a deployed version of your Studio.
already tried that -- and it's so fractured it's unusable
Bummer, that’s the only method I’m aware of to recover stuff.
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?
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.
Ok thank you. This could be a handy feature BTW. If you lose your schema files, you are really in trouble.

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?