Skip to content

Commit

Permalink
test 2
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-bizz committed Jun 24, 2024
1 parent b9bd0fe commit 4d99946
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions amplify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,9 @@ frontend:
NEXTAUTH_URL=$PREVIEW_URL;
echo "PREVIEW_URL=$PREVIEW_URL" >> .env;
echo "Not main or staging";
echo "ALERT_MESSAGE=This is a preview site and using production data so please be careful." >> .env;
export API_URL=https://api.mpdx.org/graphql
export REST_API_URL=https://api.mpdx.org/api/v2/
fi
- export API_URL=https://api.mpdx.org/graphql
- export REST_API_URL=https://api.mpdx.org/api/v2/
- echo $API_URL
- echo $REST_API_URL
- echo "NEXTAUTH_URL=$NEXTAUTH_URL" >> .env
Expand All @@ -26,8 +25,11 @@ frontend:
- yarn
- yarn disable-telemetry
- yarn gql
- export API_URL=https://api.stage.mpdx.org/graphql
- export REST_API_URL=https://api.stage.mpdx.org/api/v2/
- |
if [[ "${AWS_BRANCH}" != "main" && "${AWS_BRANCH}" != "staging" ]]; then
export API_URL=https://api.stage.mpdx.org/graphql
export REST_API_URL=https://api.stage.mpdx.org/api/v2/
fi
build:
commands:
- yarn build:amplify
Expand Down

0 comments on commit 4d99946

Please sign in to comment.