-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfirebaseConfig.js
27 lines (23 loc) · 994 Bytes
/
firebaseConfig.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
const { initializeApp } = require('firebase/app');
const { getFirestore } = require('firebase/firestore');
// Optionally import the services that you want to use
// import {...} from "firebase/auth";
// import {...} from "firebase/database";
// import {...} from "firebase/firestore";
// import {...} from "firebase/functions";
// import {...} from "firebase/storage";
// Initialize Firebase
const firebaseConfig = {
apiKey: 'AIzaSyDXEa7GuzT56RJbwrR0wEccbxejbvHaP1c',
authDomain: 'sniped-29a91.firebaseapp.com',
projectId: 'sniped-29a91',
storageBucket: 'sniped-29a91.appspot.com',
messagingSenderId: '770063023728',
appId: '1:770063023728:web:f154373a9bd0e1789bfeb5',
measurementId: 'G-D6MDKN6B6J',
};
const app = initializeApp(firebaseConfig);
// For more information on how to access Firebase in your project,
// see the Firebase documentation: https://firebase.google.com/docs/web/setup#access-firebase
const db = getFirestore(app);
module.exports = { db };