Amplify allows you to have branch-based environments. I want to set up at least a dev/test environment and production. Currently I have a production only environment tracked to my main branch.
Given a dev
When I merge into 'dev' branch
Then the code is built to the dev environment
Given a dev
When I merge into 'main' or release/** branch
Then the code is built to the prod environment
Given a user
When I run the application in the dev environment
Then the app runs using the dev env variables
Given a user
When I run the application in the prod environment
Then the app runs using the prod env variables
Amplify allows you to have branch-based environments. I want to set up at least a dev/test environment and production. Currently I have a production only environment tracked to my main branch.
Given a dev When I merge into 'dev' branch Then the code is built to the dev environment
Given a dev When I merge into 'main' or release/** branch Then the code is built to the prod environment
Given a user When I run the application in the dev environment Then the app runs using the dev env variables
Given a user When I run the application in the prod environment Then the app runs using the prod env variables