Skip to content

Commit

Permalink
using AWS_BRANCH
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-bizz committed Jun 24, 2024
1 parent d9ec5d7 commit 31c570f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions amplify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ frontend:
- nvm install 18.13
- nvm use 18.13
- |
echo "${AWS_BRANCH_ARN#*/branches/}"
if [[ "${AWS_BRANCH}" != "main" ]] && [["${AWS_BRANCH}" != "staging"]]; then
echo "${AWS_BRANCH}"
if [[ "${AWS_BRANCH}" != "main" && "${AWS_BRANCH}" != "staging"]]; then
PREVIEW_URL="https://${AWS_BRANCH}.${AWS_APP_ID}.amplifyapp.com";
NEXTAUTH_URL=$PREVIEW_URL;
echo "PREVIEW_URL=$PREVIEW_URL" >> .env;
Expand Down

0 comments on commit 31c570f

Please sign in to comment.