Skip to content

Commit ffea4b1

Browse files
committed
fix: remove AdBanner from page.tsx to eliminate SSR errors
1 parent ed80cb6 commit ffea4b1

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

src/app/page.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import Link from "next/link";
44
import NotesBrowser from "@/components/public/NotesBrowser";
5-
import AdBanner from "@/components/ads/AdBanner";
65
import DynamicBackground from "@/components/layout/DynamicBackground";
76
import { ArrowDown, BookOpen, Layers, Users } from "lucide-react";
87

@@ -93,10 +92,7 @@ export default function Home() {
9392

9493
</section>
9594

96-
{/* Ad Section */}
97-
<div className="container" style={{ marginBottom: "2rem", display: 'flex', justifyContent: 'center' }}>
98-
<AdBanner dataAdSlot="3325660893" />
99-
</div>
95+
{/* AdSense removed - incompatible with Next.js SSR */}
10096

10197
{/* 3. Main Browser Area */}
10298
<div id="browse" style={{ padding: "2rem 1rem 4rem", background: "linear-gradient(to bottom, rgba(0,0,0,0.02) 0%, var(--bg-gradient-end) 100%)" }}>

0 commit comments

Comments
 (0)