From d1a43bdf1b03214aa572c91dbf371c60b8aabe6e Mon Sep 17 00:00:00 2001 From: Joey Orlando Date: Thu, 22 Dec 2022 21:44:53 +0100 Subject: [PATCH] specify Firebase GCP project id (#1042) Modifies the Firebase app initialization to explicitly specify the GCP project ID where the Firebase app is. Previously it would use the project associated with the service account being used. --- engine/settings/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/settings/base.py b/engine/settings/base.py index f8d522d0..a5ab1195 100644 --- a/engine/settings/base.py +++ b/engine/settings/base.py @@ -553,7 +553,7 @@ if FEATURE_MOBILE_APP_INTEGRATION_ENABLED: ("apps.mobile_app.backend.MobileAppCriticalBackend", 6), ] - FIREBASE_APP = initialize_app() + FIREBASE_APP = initialize_app(options={"projectId": os.environ.get("FCM_PROJECT_ID", None)}) FCM_RELAY_ENABLED = getenv_boolean("FCM_RELAY_ENABLED", default=False) FCM_DJANGO_SETTINGS = {