generated from goitacademy/vanilla-app-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
firebase.js
37 lines (29 loc) · 1.25 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
31
32
33
34
35
36
37
import { getApp, getApps,initializeApp } from 'firebase/app';
import { getAuth } from 'firebase/auth';
import { getFirestore } from 'firebase/firestore';
// TODO: Replace the following with your app's Firebase project configuration
// const firebaseConfig = {
// apiKey: process.env.API_KEY,
// authDomain: process.env.AUTH_DOMAIN,
// projectId: process.env.PROJECTID,
// storageBucket: process.env.STORAGEBUCKET,
// messagingSenderId: process.env.MESSAGER_ID,
// appId: process.env.APP_ID,
// measurementId: process.env.MEASUREMENT_ID
// };
const firebaseConfig = {
apiKey: "AIzaSyBNBMjRxNAY7Ev3P0n12UWF7CdjphLNQ5M",
authDomain: "hosting-test-2fa75.firebaseapp.com",
projectId: "hosting-test-2fa75",
storageBucket: "hosting-test-2fa75.appspot.com",
messagingSenderId: "882269537085",
appId: "1:882269537085:web:b0e1d25d79d88d76b4bb54"
};
// export const app = getApps().length ? getApp() : initializeApp(firebaseConfig);
const app = initializeApp(firebaseConfig);
// export const auth = initializeAuth(app, {errorMap: debugErrorMap})
// export const storage = getStorage();
export const auth = getAuth(app);
// const analytics = getAnalytics(app);
export const db = getFirestore(app);
export default firebaseConfig;