Skip to content

Commit 058b987

Browse files
committed
feat: add adsbygoogle.js script
1 parent c3f3035 commit 058b987

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

apps/docs/src/app/layout.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,13 @@ export default async function Layout({
5555
className={`${geist.variable} ${mono.variable}`}
5656
suppressHydrationWarning
5757
>
58+
<head>
59+
<script
60+
async
61+
src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-8237457949590602"
62+
crossOrigin="anonymous"
63+
/>
64+
</head>
5865
<body className="flex flex-col min-h-screen" dir={direction}>
5966
<NextIntlClientProvider>
6067
<Provider dir={direction}>{children}</Provider>

apps/index/src/app/layout.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,13 @@ export default function RootLayout({
9898
}>) {
9999
return (
100100
<html lang="en">
101+
<head>
102+
<script
103+
async
104+
src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-8237457949590602"
105+
crossOrigin="anonymous"
106+
/>
107+
</head>
101108
<body
102109
className={`${geistSans.variable} ${geistMono.variable} antialiased`}
103110
>

0 commit comments

Comments
 (0)