dev mode
This commit is contained in:
parent
4c353242b0
commit
1b4dd90ec5
|
@ -1,5 +1,7 @@
|
||||||
{
|
{
|
||||||
"projects": {
|
"projects": {
|
||||||
"default": "mantic-markets"
|
"default": "mantic-markets",
|
||||||
|
"prod": "mantic-markets",
|
||||||
|
"dev": "dev-mantic-markets"
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -1,6 +1,10 @@
|
||||||
import { getFirestore } from '@firebase/firestore'
|
import { getFirestore } from '@firebase/firestore'
|
||||||
import { initializeApp } from 'firebase/app'
|
import { initializeApp } from 'firebase/app'
|
||||||
const firebaseConfig = {
|
|
||||||
|
export const isProd = process.env.NODE_ENV === 'production'
|
||||||
|
|
||||||
|
const firebaseConfig = isProd
|
||||||
|
? {
|
||||||
apiKey: 'AIzaSyDp3J57vLeAZCzxLD-vcPaGIkAmBoGOSYw',
|
apiKey: 'AIzaSyDp3J57vLeAZCzxLD-vcPaGIkAmBoGOSYw',
|
||||||
authDomain: 'mantic-markets.firebaseapp.com',
|
authDomain: 'mantic-markets.firebaseapp.com',
|
||||||
projectId: 'mantic-markets',
|
projectId: 'mantic-markets',
|
||||||
|
@ -9,16 +13,16 @@ const firebaseConfig = {
|
||||||
appId: '1:128925704902:web:f61f86944d8ffa2a642dc7',
|
appId: '1:128925704902:web:f61f86944d8ffa2a642dc7',
|
||||||
measurementId: 'G-SSFK1Q138D',
|
measurementId: 'G-SSFK1Q138D',
|
||||||
}
|
}
|
||||||
|
: {
|
||||||
|
apiKey: 'AIzaSyBoq3rzUa8Ekyo3ZaTnlycQYPRCA26VpOw',
|
||||||
|
authDomain: 'dev-mantic-markets.firebaseapp.com',
|
||||||
|
projectId: 'dev-mantic-markets',
|
||||||
|
storageBucket: 'dev-mantic-markets.appspot.com',
|
||||||
|
messagingSenderId: '134303100058',
|
||||||
|
appId: '1:134303100058:web:27f9ea8b83347251f80323',
|
||||||
|
measurementId: 'G-YJC9E37P37',
|
||||||
|
}
|
||||||
|
|
||||||
// Initialize Firebase
|
// Initialize Firebase
|
||||||
export const app = initializeApp(firebaseConfig)
|
export const app = initializeApp(firebaseConfig)
|
||||||
export const db = getFirestore(app)
|
export const db = getFirestore(app)
|
||||||
|
|
||||||
// try {
|
|
||||||
// // Note: this is still throwing a console error atm...
|
|
||||||
// import('firebase/analytics').then((analytics) => {
|
|
||||||
// analytics.getAnalytics(app)
|
|
||||||
// })
|
|
||||||
// } catch (e) {
|
|
||||||
// console.warn('Analytics were blocked')
|
|
||||||
// }
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user