-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfirebase.js
29 lines (25 loc) · 1.02 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
import { initializeApp, getApps, getApp } from "firebase/app";
import { getFirestore } from "firebase/firestore";
import { getStorage } from "firebase/storage";
// const firebaseConfig = {
// apiKey: "AIzaSyDVR1VDVW7OuK1mIWThoceCjTM5f4CwLEw",
// authDomain: "instaclone-asity.firebaseapp.com",
// projectId: "instaclone-asity",
// storageBucket: "instaclone-asity.appspot.com",
// messagingSenderId: "227577085438",
// appId: "1:227577085438:web:b7b60095e2c1a81cf214af",
// measurementId: "G-MQ7SPNT9J3",
// };
const firebaseConfig = {
apiKey: "AIzaSyCTbIdWpeQj8QaUbh4qa9yOIxzGJbRs9y0",
authDomain: "asitygram-manikangkan.firebaseapp.com",
projectId: "asitygram-manikangkan",
storageBucket: "asitygram-manikangkan.appspot.com",
messagingSenderId: "575355514106",
appId: "1:575355514106:web:5d2d474a4da0c1f551ed43",
measurementId: "G-6VBWSZ7SKT",
};
const app = !getApps().length ? initializeApp(firebaseConfig) : getApp();
const db = getFirestore();
const storage = getStorage();
export { app, db, storage };