This commit is contained in:
parent
289b086d71
commit
a3021b01b4
|
|
@ -124,6 +124,16 @@ export default async function RootLayout({
|
|||
|
||||
return (
|
||||
<html lang="en" suppressHydrationWarning>
|
||||
|
||||
<head>
|
||||
{/* 使用 next/script 注入 public/env.js 文件 */}
|
||||
<Script
|
||||
src="/env.js"
|
||||
strategy="beforeInteractive" // 确保在 React 启动之前加载
|
||||
/>
|
||||
</head>
|
||||
|
||||
|
||||
<body className={inter.className}>
|
||||
<Providers attribute="class" defaultTheme="dark">
|
||||
<TranslationsProvider
|
||||
|
|
|
|||
Loading…
Reference in New Issue