Skip to content

Commit 77233d7

Browse files
committed
revert: remove AdSense - incompatible with Next.js SSR
1 parent 6a6e408 commit 77233d7

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

src/app/page.tsx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import Link from "next/link";
44
import NotesBrowser from "@/components/public/NotesBrowser";
55
import DynamicBackground from "@/components/layout/DynamicBackground";
6-
import SimpleAd from "@/components/ads/SimpleAd";
76
import { ArrowDown, BookOpen, Layers, Users } from "lucide-react";
87

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

9493
</section>
9594

96-
{/* Ad Section */}
97-
<div className="container" style={{ marginBottom: "2rem" }}>
98-
<SimpleAd adSlot="3325660893" />
99-
</div>
95+
{/*
96+
Google AdSense is incompatible with Next.js SSR
97+
Alternative solutions:
98+
1. Use a different ad network (Media.net, Carbon Ads)
99+
2. Implement ads after full deployment (not in dev mode)
100+
3. Use static banner ads instead of dynamic AdSense
101+
*/}
100102

101103
{/* 3. Main Browser Area */}
102104
<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)