Skip to content

Commit

Permalink
update env var name
Browse files Browse the repository at this point in the history
  • Loading branch information
parth4apple committed Feb 13, 2024
1 parent eae76ef commit 088fccb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ 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
touch .env
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
Expand Down
2 changes: 1 addition & 1 deletion backend/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const serviceAccountKey = throwIfUndefined(
);

const firebaseConfig = throwIfUndefined(
process.env.FIREBASE_CONFIG,
process.env.APP_FIREBASE_CONFIG,
InternalError.NO_FIREBASE_CONFIG,
);

Expand Down

0 comments on commit 088fccb

Please sign in to comment.