Skip to content

Prove the flow

Terminal window
git checkout staging
git pull
git checkout -b feature/hello-preview
# make a small visible change on the home page
git add .
git commit -m "feat: visible preview change for amplify lab
Bump homepage copy so the PR preview is easy to recognize."
git push -u origin feature/hello-preview
  1. Open a pull request into staging
  2. Wait for GitHub CI
    GitHub Actions checks plus branch protection - required before merge. Amplify does not wait for CI by itself; it builds on push.
    to pass
  3. Confirm Amplify builds a PR preview
    Temporary Amplify hosting URL created for a pull request so you can review the built site before merge.
    - open https://pr-<n>.<app-id>.amplifyapp.com
  4. Merge the PR
  5. Confirm https://staging.<app-id>.amplifyapp.com shows the change
  6. Delete the feature branch (local and remote) and confirm the preview disappears if auto-delete is on
  1. Open a pull request from staging into main
  2. Wait for CI
  3. Merge
  4. Confirm https://main.<app-id>.amplifyapp.com matches staging
  • PR preview URL served the feature change
  • Staging URL updated after merge to staging
  • Main URL updated after merge to main
  • Preview host gone after branch delete (with auto-delete enabled)
  • No custom domain required

Next: Teardown.