Migration order
- Export or sync the code into a controlled repository.
- Identify framework, build command and runtime requirements.
- Create separate production environment variables.
- Deploy to a temporary target URL and run core flows.
- Move the custom domain only after auth callbacks and webhooks are updated.
- Enable errors, uptime and rollback checks.