From ebc5fe5019eccedc28c4513bafd3a45741cf01b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dafydd=20Ll=C5=B7r=20Pearson?= Date: Mon, 26 Aug 2024 16:33:27 +0100 Subject: [PATCH] fix: Add `VITE_APP_*` env vars to staging and prod CI (#3561) --- .github/workflows/push-main.yml | 14 +++++++------- .github/workflows/push-production.yml | 14 +++++++------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/push-main.yml b/.github/workflows/push-main.yml index 9fc99a9b1a..9c8b73c8e8 100644 --- a/.github/workflows/push-main.yml +++ b/.github/workflows/push-main.yml @@ -53,13 +53,13 @@ jobs: - run: pnpm build working-directory: editor.planx.uk env: - REACT_APP_API_URL: https://api.editor.planx.dev - REACT_APP_HASURA_URL: https://hasura.editor.planx.dev/v1/graphql - REACT_APP_HASURA_WEBSOCKET: wss://hasura.editor.planx.dev/v1/graphql - REACT_APP_SHAREDB_URL: wss://sharedb.editor.planx.dev - REACT_APP_AIRBRAKE_PROJECT_ID: ${{ secrets.AIRBRAKE_PROJECT_ID }} - REACT_APP_AIRBRAKE_PROJECT_KEY: ${{ secrets.AIRBRAKE_PROJECT_KEY }} - REACT_APP_ENV: staging + VITE_APP_API_URL: https://api.editor.planx.dev + VITE_APP_HASURA_URL: https://hasura.editor.planx.dev/v1/graphql + VITE_APP_HASURA_WEBSOCKET: wss://hasura.editor.planx.dev/v1/graphql + VITE_APP_SHAREDB_URL: wss://sharedb.editor.planx.dev + VITE_APP_AIRBRAKE_PROJECT_ID: ${{ secrets.AIRBRAKE_PROJECT_ID }} + VITE_APP_AIRBRAKE_PROJECT_KEY: ${{ secrets.AIRBRAKE_PROJECT_KEY }} + VITE_APP_ENV: staging - name: Upload Build Artifact uses: actions/upload-artifact@v4 with: diff --git a/.github/workflows/push-production.yml b/.github/workflows/push-production.yml index 917a32fa90..319f28051b 100644 --- a/.github/workflows/push-production.yml +++ b/.github/workflows/push-production.yml @@ -53,13 +53,13 @@ jobs: - run: pnpm build working-directory: editor.planx.uk env: - REACT_APP_API_URL: https://api.editor.planx.uk - REACT_APP_HASURA_URL: https://hasura.editor.planx.uk/v1/graphql - REACT_APP_HASURA_WEBSOCKET: wss://hasura.editor.planx.uk/v1/graphql - REACT_APP_SHAREDB_URL: wss://sharedb.editor.planx.uk - REACT_APP_AIRBRAKE_PROJECT_ID: ${{ secrets.AIRBRAKE_PROJECT_ID }} - REACT_APP_AIRBRAKE_PROJECT_KEY: ${{ secrets.AIRBRAKE_PROJECT_KEY }} - REACT_APP_ENV: production + VITE_APP_API_URL: https://api.editor.planx.uk + VITE_APP_HASURA_URL: https://hasura.editor.planx.uk/v1/graphql + VITE_APP_HASURA_WEBSOCKET: wss://hasura.editor.planx.uk/v1/graphql + VITE_APP_SHAREDB_URL: wss://sharedb.editor.planx.uk + VITE_APP_AIRBRAKE_PROJECT_ID: ${{ secrets.AIRBRAKE_PROJECT_ID }} + VITE_APP_AIRBRAKE_PROJECT_KEY: ${{ secrets.AIRBRAKE_PROJECT_KEY }} + VITE_APP_ENV: production - name: Upload Build Artifact uses: actions/upload-artifact@v4 with: