-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfirebase.v9.js
35 lines (28 loc) · 987 Bytes
/
firebase.v9.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
// Import the functions you need from the SDKs you need
import firebase from 'firebase/compat/app';
import 'firebase/compat/auth';
import 'firebase/compat/firestore';
import 'firebase/compat/storage';
// TODO: Add SDKs for Firebase products that you want to use
// https://firebase.google.com/docs/web/setup#available-libraries
// Your web app's Firebase configuration
const firebaseConfig = {
apiKey: "AIzaSyCseh9VwXNt07eHSVEpiyNsJDWw1b2aD8A",
authDomain: "festifybg.firebaseapp.com",
projectId: "festifybg",
storageBucket: "festifybg.appspot.com",
messagingSenderId: "939551607694",
appId: "1:939551607694:web:870238ee26486d2a3b72df"
};
// Initialize Firebase
let app;
if (firebase.apps.length === 0) {
app = firebase.initializeApp(firebaseConfig);
}
else { app = firebase.app(); }
// Authentication
export const auth = firebase.auth();
// FireStore
export const firestore = firebase.firestore();
// Storage
export const storage = firebase.storage();