-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfirebaseConfig.js
More file actions
31 lines (21 loc) · 846 Bytes
/
Copy pathfirebaseConfig.js
File metadata and controls
31 lines (21 loc) · 846 Bytes
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
import { initializeApp } from "firebase/app";
import { getAuth, GoogleAuthProvider } from "firebase/auth";
import { getFirestore } from "firebase/firestore";
import { getStorage } from "firebase/storage";
const apiKey = import.meta.env.VITE_API_KEY;
const messagingSenderId = import.meta.env.VITE_MESSAGING_SENDERID;
const appId = import.meta.env.VITE_APP_ID;
const firebaseConfig = {
apiKey: apiKey,
authDomain: "judy-hub-ecommerce.firebaseapp.com",
projectId: "judy-hub-ecommerce",
storageBucket: "judy-hub-ecommerce.appspot.com",
messagingSenderId: messagingSenderId,
appId: appId,
measurementId: "G-N0S8329WMD"
};
const app = initializeApp(firebaseConfig);
export const storage = getStorage(app);
export const db = getFirestore(app);
export const auth = getAuth(app);
export const provider = new GoogleAuthProvider();