From fcfc76706c0f7c509f3f2f5dee7f13e814d06c9b Mon Sep 17 00:00:00 2001 From: Mustafa Yildiz Date: Sun, 12 Jul 2026 15:26:14 +0300 Subject: [PATCH] fix: use next/script for analytics to prevent hydration errors --- app/[locale]/layout.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/[locale]/layout.tsx b/app/[locale]/layout.tsx index 734fe88..297ec56 100644 --- a/app/[locale]/layout.tsx +++ b/app/[locale]/layout.tsx @@ -1,4 +1,5 @@ import type { Metadata } from "next"; +import Script from "next/script"; import { Cormorant_Garamond, Plus_Jakarta_Sans } from "next/font/google"; import {NextIntlClientProvider} from 'next-intl'; import {getMessages, setRequestLocale} from 'next-intl/server'; @@ -48,14 +49,13 @@ export default async function LocaleLayout({ return ( - - {/* VPS Panel Analytics */} - - {children} + + {/* VPS Panel Analytics */} +