Skip to content

Commit ed80cb6

Browse files
committed
fix: disable AdSense in layout - incompatible with Next.js SSR
1 parent a3637e1 commit ed80cb6

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

src/app/layout.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,11 @@ export default function RootLayout({
6060
<ToastProvider>
6161
<Navbar />
6262
<main style={{ padding: "2rem 0" }}>{children}</main>
63-
<div style={{ maxWidth: '1200px', margin: '0 auto', textAlign: 'center' }}>
64-
<AdBanner dataAdSlot="3325660893" />
65-
</div>
63+
{/*
64+
AdSense disabled due to incompatibility with Next.js SSR
65+
See: https://github.com/vercel/next.js/discussions/38256
66+
Alternative: Use page-level ads or different ad network
67+
*/}
6668
</ToastProvider>
6769
</UndoProvider>
6870
</ThemeProvider>

0 commit comments

Comments
 (0)