Prove the flow
Feature branch → staging
Section titled “Feature branch → staging”git checkout staginggit pullgit checkout -b feature/hello-preview# make a small visible change on the home pagegit 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- Open a pull request into
staging - 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 - Confirm Amplify builds a PR preview
Temporary Amplify hosting URL created for a pull request so you can review the built site before merge. - openhttps://pr-<n>.<app-id>.amplifyapp.com - Merge the PR
- Confirm
https://staging.<app-id>.amplifyapp.comshows the change - Delete the feature branch (local and remote) and confirm the preview disappears if auto-delete is on
Staging → main
Section titled “Staging → main”- Open a pull request from
stagingintomain - Wait for CI
- Merge
- Confirm
https://main.<app-id>.amplifyapp.commatches staging
Success criteria
Section titled “Success criteria”- 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.