This commit is contained in:
parent
60ee729ace
commit
3bf9df89dd
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue