Skip to content

Commit 7007055

Browse files
committed
fix: new script tag
1 parent 2d86bb9 commit 7007055

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

apps/www/app/layout.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import { getCliVersion } from "@/lib/get-cli-version";
1717
import { StructuredData } from "@/components/structured-data";
1818
import "@workspace/ui/globals.css";
1919
import { Toaster } from "@workspace/ui/components/sonner";
20+
import Script from "next/script";
2021

2122
const fontSans = Geist({
2223
subsets: ["latin"],
@@ -104,6 +105,12 @@ export default async function RootLayout({ children }: Readonly<LayoutProps>) {
104105
return (
105106
<html lang="en" suppressHydrationWarning>
106107
<head>
108+
<Script
109+
async
110+
src={`https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=${process.env.NEXT_PUBLIC_AD_CLIENT_ID}`}
111+
crossOrigin="anonymous"
112+
strategy="afterInteractive"
113+
/>
107114
<StructuredData type="website" />
108115
</head>
109116
<body

0 commit comments

Comments
 (0)