We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e7b659 commit 342e68dCopy full SHA for 342e68d
config/firebase.ts
@@ -1,11 +1,9 @@
1
import { initializeApp } from "firebase/app";
2
import { Firestore, getFirestore } from "firebase/firestore";
3
import { Auth, getAuth } from "firebase/auth";
4
-import { Analytics, getAnalytics } from "firebase/analytics";
5
6
let auth: Auth | undefined;
7
let db: Firestore | undefined;
8
-let analytics: Analytics | undefined;
9
10
try {
11
const firebaseConfig = {
@@ -22,7 +20,6 @@ try {
22
20
23
21
auth = getAuth(app);
24
db = getFirestore(app);
25
- analytics = typeof window !== "undefined" ? getAnalytics(app) : undefined;
26
} catch (error) {
27
console.log(
28
Error(
@@ -31,4 +28,4 @@ try {
31
);
32
29
}
33
30
34
-export { auth, db, analytics };
+export { auth, db };
0 commit comments