From a1ff3791f7a92d8794e040edd41500bde12c5ade Mon Sep 17 00:00:00 2001 From: Ijemma Onwuzulike Date: Fri, 14 Jun 2024 23:54:46 -0400 Subject: [PATCH] chore: stop referring to backend's isProduction variable --- src/services/firebase.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/firebase.ts b/src/services/firebase.ts index 0d946aa5..a9cc0c52 100644 --- a/src/services/firebase.ts +++ b/src/services/firebase.ts @@ -1,11 +1,11 @@ import { getApp, getApps, initializeApp } from 'firebase/app'; import { connectAuthEmulator, getAuth } from 'firebase/auth'; import { getFunctions, connectFunctionsEmulator } from 'firebase/functions'; -import { isProduction } from '../config'; import firebaseSdkConfig from '../../firebase.json'; import { PRODUCTION_FIREBASE_CONFIG, STAGING_FIREBASE_CONFIG } from './firebaseConfigs'; const apps = getApps(); +const isProduction = process.env.NODE_ENV === 'production'; let currentApp; // Initialize Firebase