Unable To Restore the Deleted Document from ERP Next

Dear Team,
I’m experiencing difficulties restoring a deleted DocType (Sales Order) in ERPNext. When attempting to do so, I receive an error message stating “Not in Developer Mode! Set in site_config.json or make ‘Custom’ DocType”. However, all of our customizations have been erased, and we need to revert to an earlier version of the platform to proceed with our work. Could you please advise me on how to restore the DocType as soon as possible?

Thank you for your prompt attention to this matter. We look forward to hearing back from you soon.

Try bench build && bench migrate Your customisation would be lost if you haven’t done it in a separate app.

If there are backups made before the doctype was deleted, perhaps it may be possible to reinstall the app then restore the backup.