-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfirebase.js
27 lines (22 loc) · 871 Bytes
/
firebase.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
// Import the functions you need from the SDKs you need
import firebase from 'firebase/compat/app';
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: "AIzaSyDixbBig0D5vqlva8N8rs-_Z6dQnZClOaU",
authDomain: "react-facebook-clone-b334c.firebaseapp.com",
projectId: "react-facebook-clone-b334c",
storageBucket: "react-facebook-clone-b334c.appspot.com",
messagingSenderId: "433228481757",
appId: "1:433228481757:web:6ca5f2f6f7a8ec42d60734"
};
// Initialize Firebase
const app = !firebase.apps.length
? firebase.initializeApp(firebaseConfig)
: firebase.app();
const db = app.firestore()
const storage = app.storage()
export {db, storage}