From 375ce69b7d0a60ad4dc339e22b0bcc070b2797bf Mon Sep 17 00:00:00 2001 From: mantikoros Date: Tue, 1 Feb 2022 21:23:06 -0600 Subject: [PATCH] yarn devdev --- web/lib/firebase/init.ts | 4 +--- web/package.json | 1 + 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/web/lib/firebase/init.ts b/web/lib/firebase/init.ts index 86c0648a..64e808de 100644 --- a/web/lib/firebase/init.ts +++ b/web/lib/firebase/init.ts @@ -1,9 +1,7 @@ import { getFirestore } from '@firebase/firestore' import { initializeApp, getApps, getApp } from 'firebase/app' -// TODO: Reenable this when we have a way to set the Firebase db in dev -// export const isProd = process.env.NODE_ENV === 'production' -export const isProd = true +export const isProd = process.env.NEXT_PUBLIC_FIREBASE_ENV !== 'DEV' const firebaseConfig = isProd ? { diff --git a/web/package.json b/web/package.json index 96ef19fb..92ca48d3 100644 --- a/web/package.json +++ b/web/package.json @@ -4,6 +4,7 @@ "private": true, "scripts": { "dev": "concurrently -n NEXT,TS -c magenta,cyan \"next dev -p 3000\" \"yarn ts --watch\"", + "devdev": "NEXT_PUBLIC_FIREBASE_ENV=DEV concurrently -n NEXT,TS -c magenta,cyan \"FIREBASE_ENV=DEV next dev -p 3000\" \"FIREBASE_ENV=DEV yarn ts --watch\"", "ts": "tsc --noEmit --incremental --preserveWatchOutput --pretty", "build": "next build", "start": "next start",