From 088fccb43d8d2899e17800fd0e3955d1c0b2388c Mon Sep 17 00:00:00 2001 From: parth4apple <72187062+parth4apple@users.noreply.github.com> Date: Mon, 12 Feb 2024 18:35:04 -0800 Subject: [PATCH] update env var name --- .github/workflows/build-and-deploy.yml | 4 ++-- backend/src/config.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-and-deploy.yml b/.github/workflows/build-and-deploy.yml index 33ec50ff..e1682316 100644 --- a/.github/workflows/build-and-deploy.yml +++ b/.github/workflows/build-and-deploy.yml @@ -25,7 +25,7 @@ jobs: run: | cd frontend touch .env - echo FIREBASE_CONFIG=${{ secrets.FIREBASE_CONFIG }} >> .env + echo APP_FIREBASE_CONFIG=${{ secrets.APP_FIREBASE_CONFIG }} >> .env - name: Create Backend .env run: | cd backend @@ -33,7 +33,7 @@ jobs: echo MONGO_URI=${{ secrets.MONGO_URI }} >> .env echo SERVICE_ACCOUNT_KEY=${{ secrets.SERVICE_ACCOUNT_KEY }} >> .env echo APP_PORT=${{ secrets.APP_PORT }} >> .env - echo FIREBASE_CONFIG=${{ secrets.FIREBASE_CONFIG }} >> .env + echo APP_FIREBASE_CONFIG=${{ secrets.APP_FIREBASE_CONFIG }} >> .env - name: Build Frontend run: cd frontend && npm ci && npm run build - name: Build Backend diff --git a/backend/src/config.ts b/backend/src/config.ts index 60c981b9..add3c61a 100644 --- a/backend/src/config.ts +++ b/backend/src/config.ts @@ -19,7 +19,7 @@ const serviceAccountKey = throwIfUndefined( ); const firebaseConfig = throwIfUndefined( - process.env.FIREBASE_CONFIG, + process.env.APP_FIREBASE_CONFIG, InternalError.NO_FIREBASE_CONFIG, );