Skip to content

Commit

Permalink
Merge pull request #123 from bettersg/firebase-ga
Browse files Browse the repository at this point in the history
Add firebase google analytics setup to project
  • Loading branch information
rurumeister authored Dec 28, 2024
2 parents 8803e29 + 52c2d29 commit f698508
Show file tree
Hide file tree
Showing 6 changed files with 1,013 additions and 2 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/firebase-hosting-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ jobs:
env:
APP_ENV: staging
NEXT_PUBLIC_API_BASE_URL: ${{ vars.NEXT_PUBLIC_API_BASE_URL }}
NEXT_PUBLIC_FIREBASE_MEASUREMENT_ID: ${{ vars.NEXT_PUBLIC_FIREBASE_MEASUREMENT_ID_DEV }}
NEXT_PUBLIC_FIREBASE_API_KEY: ${{ vars.NEXT_PUBLIC_FIREBASE_API_KEY_DEV }}
NEXT_PUBLIC_FIREBASE_PROJECT_ID: ${{ vars.NEXT_PUBLIC_FIREBASE_PROJECT_ID_DEV }}
NEXT_PUBLIC_FIREBASE_APP_ID: ${{ vars.NEXT_PUBLIC_FIREBASE_APP_ID_DEV }}
run: |
cd frontend
npm ci
Expand All @@ -58,3 +62,7 @@ jobs:
env:
FIREBASE_CLI_EXPERIMENTS: webframeworks
NEXT_PUBLIC_API_BASE_URL: ${{ vars.NEXT_PUBLIC_API_BASE_URL }}
NEXT_PUBLIC_FIREBASE_MEASUREMENT_ID: ${{ vars.NEXT_PUBLIC_FIREBASE_MEASUREMENT_ID_DEV }}
NEXT_PUBLIC_FIREBASE_API_KEY: ${{ vars.NEXT_PUBLIC_FIREBASE_API_KEY_DEV }}
NEXT_PUBLIC_FIREBASE_PROJECT_ID: ${{ vars.NEXT_PUBLIC_FIREBASE_PROJECT_ID_DEV }}
NEXT_PUBLIC_FIREBASE_APP_ID: ${{ vars.NEXT_PUBLIC_FIREBASE_APP_ID_DEV }}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -220,3 +220,6 @@ node_modules/
creds.json
frontend/env.development
frontend/env.staging
dataset_worfklow/dev-creds.json
dataset_worfklow/prod-creds.json
dataset_worfklow/schemes-dev-firestore-structure.json
Loading

0 comments on commit f698508

Please sign in to comment.