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, );