manifold/web/lib/firebase/init.ts

25 lines
770 B
TypeScript
Raw Normal View History

2021-12-09 22:05:55 +00:00
import { getFirestore } from '@firebase/firestore'
2021-12-08 16:42:19 +00:00
import { initializeApp } from 'firebase/app'
const firebaseConfig = {
apiKey: 'AIzaSyDp3J57vLeAZCzxLD-vcPaGIkAmBoGOSYw',
authDomain: 'mantic-markets.firebaseapp.com',
projectId: 'mantic-markets',
storageBucket: 'mantic-markets.appspot.com',
messagingSenderId: '128925704902',
appId: '1:128925704902:web:f61f86944d8ffa2a642dc7',
measurementId: 'G-SSFK1Q138D',
2021-12-08 16:42:19 +00:00
}
// Initialize Firebase
export const app = initializeApp(firebaseConfig)
2021-12-09 22:05:55 +00:00
export const db = getFirestore(app)
2021-12-16 04:20:39 +00:00
// 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')
// }