-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfirebase.js
30 lines (26 loc) · 1.13 KB
/
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
28
29
30
// Import the functions you need from the SDKs you need
import { initializeApp } from "firebase/app";
import { getFirestore } from "firebase/firestore";
import { getStorage } from "firebase/storage";
// import { getAnalytics } from "firebase/analytics";
// 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
// For Firebase JS SDK v7.20.0 and later, measurementId is optional
const firebaseConfig = {
apiKey: process.env.REACT_APP_API_KEY,
authDomain: REACT_APP_AUTH_DOMAIN,
projectId: REACT_APP_PROJECT_ID,
storageBucket: REACT_APP_STORAGE_BUCKET,
messagingSenderId: REACT_APP_MESSAGE_SENDER_ID,
appId: REACT_APP_APP_ID,
measurementId: REACT_APP_MEASUREMENT_ID
};
// console.log("Firebase", process.env.FIREBASE_API_KEY);
// console.log("Firebase", process.env.FIREBASE_APP_ID);
// console.log("Firebase", process.env.FIREBASE_AUTH_DOMAIN);
// Initialize Firebase
export const app = initializeApp(firebaseConfig);
export const db = getFirestore(app);
export const storage = getStorage();
// const analytics = getAnalytics(app);