From 76478fe56d9cd05d2737f022f3cef0dff88b27b3 Mon Sep 17 00:00:00 2001 From: gunshiz Date: Tue, 29 Sep 2026 16:28:15 +0700 Subject: [PATCH] fix(production) : prevent hydration and service failures --- app/layout.tsx | 1 + components/public/google-adsense.tsx | 7 ++----- lib/catalog/sync.ts | 7 ++++++- lib/guides/queries.ts | 13 +++++++++---- lib/security/headers.ts | 6 ++++-- tests/public-performance.test.ts | 15 +++++++++++++++ 6 files changed, 37 insertions(+), 12 deletions(-) diff --git a/app/layout.tsx b/app/layout.tsx index 5f9006f..89eaafe 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -36,6 +36,7 @@ export default function RootLayout({ children }: LayoutProps<"/">) { diff --git a/components/public/google-adsense.tsx b/components/public/google-adsense.tsx index d78b88c..6bbad9c 100644 --- a/components/public/google-adsense.tsx +++ b/components/public/google-adsense.tsx @@ -1,5 +1,3 @@ -import Script from "next/script"; - const clientId = process.env.NEXT_PUBLIC_GOOGLE_ADSENSE_CLIENT_ID?.trim(); export function GoogleAdsense() { @@ -8,10 +6,9 @@ export function GoogleAdsense() { } return ( -