Skip to content

Commit f01a6b7

Browse files
author
Selcuk
committed
Build fixes
1 parent 7a80fdb commit f01a6b7

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/app/layout.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import type { Metadata } from 'next';
22
import { Open_Sans } from 'next/font/google';
33
import { ThemeProvider } from 'next-themes';
4+
import { Suspense } from 'react';
45
import './globals.css';
56
import { TheHeader } from '@/components/TheHeader';
67
import { Toaster } from '@/components/ui/sonner';
@@ -36,7 +37,9 @@ export default function RootLayout({
3637
<main className="grow">{children}</main>
3738
</ThemeProvider>
3839
<Toaster />
39-
<Analytics />
40+
<Suspense fallback={null}>
41+
<Analytics />
42+
</Suspense>
4043
</body>
4144
</html>
4245
);

0 commit comments

Comments
 (0)