-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfirebase.js
More file actions
22 lines (18 loc) · 796 Bytes
/
firebase.js
File metadata and controls
22 lines (18 loc) · 796 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import { initializeApp, getApps } from "firebase/app";
import { getAuth, GoogleAuthProvider } from "firebase/auth";
import { getFirestore } from "firebase/firestore";
const firebaseConfig = {
apiKey: "AIzaSyBFLeKsNGKz5geVVsYaLfsGBInaom6HZ50",
authDomain: "respectnerds-6e8ca.firebaseapp.com",
projectId: "respectnerds-6e8ca",
storageBucket: "respectnerds-6e8ca.firebasestorage.app",
messagingSenderId: "241567333800",
appId: "1:241567333800:web:cd55bc4ea31490136eb19d",
measurementId: "G-CLPHZKWKQ7"
};
// Next.js fast-refresh safe initialization
const app = getApps().length === 0 ? initializeApp(firebaseConfig) : getApps()[0];
const auth = getAuth(app);
const db = getFirestore(app);
const googleProvider = new GoogleAuthProvider();
export { app, auth, db, googleProvider };