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 8769120 commit 40bd1c1Copy full SHA for 40bd1c1
frontend/src/app/layout.tsx
@@ -28,7 +28,9 @@ export default function RootLayout({
28
children: React.ReactNode;
29
}) {
30
const app = initializeApp(firebaseConfig);
31
- const analytics = getAnalytics(app);
+ if (typeof window !== "undefined") {
32
+ const analytics = getAnalytics(app);
33
+ }
34
return (
35
<html lang="en" data-theme="myTheme">
36
<body className={montserrat.className}>
0 commit comments