This commit is contained in:
parent
60ee729ace
commit
3bf9df89dd
|
|
@ -88,7 +88,6 @@ export default async function RootLayout({
|
||||||
}: RootLayoutProps) {
|
}: RootLayoutProps) {
|
||||||
const cookieStore = cookies()
|
const cookieStore = cookies()
|
||||||
|
|
||||||
|
|
||||||
// 遍历所有 cookies
|
// 遍历所有 cookies
|
||||||
for (const cookie of cookieStore.getAll()) {
|
for (const cookie of cookieStore.getAll()) {
|
||||||
console.log(`🍪 Cookie: ${cookie.name} = ${cookie.value}`);
|
console.log(`🍪 Cookie: ${cookie.name} = ${cookie.value}`);
|
||||||
|
|
@ -124,6 +123,14 @@ export default async function RootLayout({
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<html lang="en" suppressHydrationWarning>
|
<html lang="en" suppressHydrationWarning>
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<Script
|
||||||
|
src="/env.js"
|
||||||
|
strategy="beforeInteractive" // 确保在 React 启动之前加载
|
||||||
|
/>
|
||||||
|
</head>
|
||||||
|
|
||||||
<body className={inter.className}>
|
<body className={inter.className}>
|
||||||
<Providers attribute="class" defaultTheme="dark">
|
<Providers attribute="class" defaultTheme="dark">
|
||||||
<TranslationsProvider
|
<TranslationsProvider
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue