First, go to https://<yourname>.sanity.studio
(or to the url of your studio if it's hosted elsewhere). Then open the developer console (usually by one of the keyboard shortcuts Command+Option+I
, F12
or Control+Shift+I
depending on what browser/platform you are using)
- Open the Sources tab
- Find the
app.bundle.js
file in the sidebar tree view. - Hit the pretty print source button
- Locate your schema types by searching (e.g. try searching for one of your custom types) it in the source view.
You should be able to recover most of your schema type definitions this way, although you may need to reformat and rewrite from the minified code.