I am setting up an AppExchange package on SFDX with Namespace. After the installation of the App, we have various manual changes (enable field history on Standard objects, add record types to Standard objects, enable org-wide settings, custom settings records, Profile/permission set assignments, Test Data generation, etc.).
I am able to successfully set up the App with Namespace on Scratch org and configuration changes. Now, my worry is Scratch org 's maximum lifetime is 30 days.
In this case, whenever a developer wants to do a small change after 30 days he needs to set up the manual configuration again. Is it possible to generate lifetime Scratch orgs by contacting Salesforce? If not, I have two approaches to solve this :
- Setup Individual Developer orgs for Developers and do manual configuration one time. In this case, I don't need to repeat the manual process again.
- Create a script for manual changes (wherever possible) and run that script on new scratch org every time on a new scratch org.
Please suggest, if there is any better way to minimize the manual changes required on a Scratch org.