yarn devdev

This commit is contained in:
mantikoros 2022-02-01 21:23:06 -06:00
parent 2cb4321766
commit 375ce69b7d
2 changed files with 2 additions and 3 deletions

View File

@ -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
? {

View File

@ -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",