fix(adsense): output physical script tag in static html for crawler detection

This commit is contained in:
katR 2026-09-12 14:11:09 +05:30
parent fffbb1b2ff
commit 5ce92098d2

View file

@ -1,6 +1,5 @@
import type { Metadata } from "next";
import { Geist, Geist_Mono } from "next/font/google";
import Script from "next/script";
import "./globals.css";
import Header from "@/components/Header";
import Footer from "@/components/Footer";
@ -70,11 +69,12 @@ export default function RootLayout({ children }: { children: React.ReactNode })
name="google-site-verification"
content="t_GK2K5w97K3W9jIuzdmPKGu-STw4fagx-5jYQib4yE"
/>
{/* Google AdSense */}
{/* Google AdSense Script */}
<script
async
src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-3876936176422477"
crossOrigin="anonymous"
dangerouslySetInnerHTML={{ __html: "" }}
/>
</head>
<body className="dot-bg-fade flex min-h-full flex-col bg-black text-foreground">