-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfirebase.js
25 lines (20 loc) · 879 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
// Import the functions you need from the SDKs you need
import { initializeApp ,getApps ,getApp } from "firebase/app";
import { getFirestore } from "firebase/firestore";
import { getStorage } from "firebase/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: "AIzaSyDrH0Gen5cfOuDYsxevqe9HeSyd46Xf3U0",
authDomain: "instagram-v2-43940.firebaseapp.com",
projectId: "instagram-v2-43940",
storageBucket: "instagram-v2-43940.appspot.com",
messagingSenderId: "929944514805",
appId: "1:929944514805:web:4d5bc084fe9e6d46f555bc"
};
// Initialize Firebase
const app = !getApps().length ? initializeApp(firebaseConfig): getApp();
const db = getFirestore();
const storage = getStorage();
export {app,db,storage};