Feature branch deployments and team workflows
Amplify Hosting is designed to work with feature branch and GitFlow workflows. Amplify uses Git branches to create a new deployment each time you connect a new branch in your repository. After you connect your first branch, you create additional feature branches.
To add a branch to an app
-
Choose the app you want to add a branch to.
-
Choose App settings, then Branch settings.
-
On the Branch settings page, choose Add branch.
-
Select a branch from your repository.
-
Choose Add branch.
-
Redeploy your app.
After you add a branch, your app has two deployments available at the Amplify default domains, such as https://main.appid.amplifyapp.com and https://dev.appid.amplifyapp.com. This may vary from team-to-team, but typically the main branch tracks release code and is your production branch. The develop branch is used as an integration branch to test new features. This enables beta testers to test unreleased features on the develop branch deployment, without affecting any of the production end users on the main branch deployment.