-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfirebaseConfig.js
44 lines (35 loc) · 1.29 KB
/
firebaseConfig.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import firebase from 'firebase/compat/app';
import 'firebase/compat/auth';
import 'firebase/compat/firestore';
import 'firebase/compat/storage';
const firebaseConfig = {
// your firebase configuration here
apiKey: 'AIzaSyDwe3AX_rM53w41lQk9u8lZQU8Ypk-EFak',
authDomain: 'sebl-farm-assist.firebaseapp.com',
projectId: 'sebl-farm-assist',
storageBucket: 'gs://sebl-farm-assist.appspot.com',
messagingSenderId: '797901349085',
appId: '1:797901349085:web:b98edf2c40d9a46ea9bb34',
//databaseURL: 'https://sebl-farm-assist.firebaseio.com',
};
if (!firebase.apps.length) {
firebase.initializeApp(firebaseConfig);
}
export {firebase};
// import { initializeApp } from "firebase/app";
// import { getFirestore, initializeFirestore } from "firebase/firestore";
// import { getAuth } from "firebase/auth";
// const firebaseConfig = {
// apiKey: 'AIzaSyDwe3AX_rM53w41lQk9u8lZQU8Ypk-EFak',
// authDomain: 'sebl-farm-assist.firebaseapp.com',
// projectId: 'sebl-farm-assist',
// storageBucket: 'gs://sebl-farm-assist.appspot.com',
// messagingSenderId: '797901349085',
// appId: '1:797901349085:web:b98edf2c40d9a46ea9bb34',
// };
// const app = initializeApp(firebaseConfig);
// const auth = getAuth(app)
// const db = initializeFirestore(app, {
// experimentalForceLongPolling: true
// })
// export { db, auth };