Creating Preview Deployments


Deployment can automatically create a preview build when a pull request is created against a branch. This can help you during code reviews since you can be confident of the changes before they're deployed to production. On the deployment page, enable previews under the Previews tab.


previews

By default, all previews are created in the same environment as the base branch deployment. Once a preview is created, you can update the environment by editing the preview and redeploying. edit preview

Messages and comments are added accordingly for the pull request on GitHub and GitLab.

The preview and all the cloud sources created for the preview are deleted automatically, 30 minutes after the PR is merged or closed.