Skip to content

Commit 342e68d

Browse files
committed
Remove analytics for time being
1 parent 6e7b659 commit 342e68d

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

config/firebase.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
import { initializeApp } from "firebase/app";
22
import { Firestore, getFirestore } from "firebase/firestore";
33
import { Auth, getAuth } from "firebase/auth";
4-
import { Analytics, getAnalytics } from "firebase/analytics";
54

65
let auth: Auth | undefined;
76
let db: Firestore | undefined;
8-
let analytics: Analytics | undefined;
97

108
try {
119
const firebaseConfig = {
@@ -22,7 +20,6 @@ try {
2220

2321
auth = getAuth(app);
2422
db = getFirestore(app);
25-
analytics = typeof window !== "undefined" ? getAnalytics(app) : undefined;
2623
} catch (error) {
2724
console.log(
2825
Error(
@@ -31,4 +28,4 @@ try {
3128
);
3229
}
3330

34-
export { auth, db, analytics };
31+
export { auth, db };

0 commit comments

Comments
 (0)