Skip to content

Previews and auto-delete

In the Amplify app settings (previews / branch settings - label varies slightly by Console revision):

  1. Enable Pull request previews (or equivalent) for the connected repository
  2. Ensure webhooks from the GitHub App
    Amplify GitHub App - OAuth install that lets Amplify clone your repo and receive push/PR webhooks without a long-lived personal access token.
    can reach Amplify (the connect flow normally configures this)

Open a test PR (next page) and confirm a URL like:

https://pr-<number>.<app-id>.amplifyapp.com

That is a PR preview
Temporary Amplify hosting URL created for a pull request so you can review the built site before merge.
.

Turn on branch auto-delete
Amplify setting that removes a preview branch and its URL when the Git branch is deleted.
so that when the Git feature branch is deleted, Amplify removes the corresponding preview hosting.

Setting Benefit
PR previews Review the real build before merge
Branch auto-delete Avoid orphaned preview hosts and extra build noise

Next: Prove the flow.