This commit is contained in:
hailin 2025-05-21 14:54:38 +08:00
parent 60ee729ace
commit 3bf9df89dd
1 changed files with 9 additions and 2 deletions

View File

@ -88,7 +88,6 @@ export default async function RootLayout({
}: RootLayoutProps) {
const cookieStore = cookies()
// 遍历所有 cookies
for (const cookie of cookieStore.getAll()) {
console.log(`🍪 Cookie: ${cookie.name} = ${cookie.value}`);
@ -123,7 +122,15 @@ export default async function RootLayout({
//console.log("[layout.tsx]..............current locale: ", {locale});
return (
<html lang="en" suppressHydrationWarning>
<html lang="en" suppressHydrationWarning>
<head>
<Script
src="/env.js"
strategy="beforeInteractive" // 确保在 React 启动之前加载
/>
</head>
<body className={inter.className}>
<Providers attribute="class" defaultTheme="dark">
<TranslationsProvider