-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfirebase.js
More file actions
21 lines (18 loc) · 807 Bytes
/
firebase.js
File metadata and controls
21 lines (18 loc) · 807 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Import the functions you need from the SDKs you need
import { initializeApp, getApp, getApps } from "firebase/app";
import { getFirestore } from "firebase/firestore";
// 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: "AIzaSyCImMGbTVcoqLqDseon5TAGy5_GHfKGx4U",
authDomain: "personal-website-raceme.firebaseapp.com",
projectId: "personal-website-raceme",
storageBucket: "personal-website-raceme.appspot.com",
messagingSenderId: "74355242276",
appId: "1:74355242276:web:59bc0dd042cfebebc5afb1"
};
// Initialize Firebase
const app = !getApps().length ? initializeApp(firebaseConfig) : getApp();
const db = getFirestore();
export { app, db };