Preview has its own database, so a migration or destructive change tested there cannot affect production data.
Deploying to an environment
Choose the environment in the deploy dialog:- Preview: deploys the selected version to the Preview instance. The first Preview deploy creates the
-previewinstance (its own subdomain and database); later deploys reuse it. - Production: deploys to the live app.
Environments and deploy targets
Environments exist within each deploy target. An app deployed to more than one target (for example, two regions) has its own Production and Preview instances in each. Each instance is independent.Custom domains
A custom domain applies to the Production environment only. Preview always uses its default-preview URL.

