This commit is contained in:
hailin 2025-05-21 13:34:29 +08:00
parent 426d3181d8
commit e745855460
1 changed files with 4 additions and 4 deletions

View File

@ -1,15 +1,15 @@
import Script from "next/script"; import { Html, Head, Main, NextScript } from 'next/document';
import Script from 'next/script';
export default function Document() { export default function Document() {
return ( return (
<Html lang="en"> <Html lang="en">
<Head> <Head />
<body>
<Script <Script
src="/env.js" src="/env.js"
strategy="beforeInteractive" // 确保在 React 启动之前加载 strategy="beforeInteractive" // 确保在 React 启动之前加载
/> />
</Head>
<body>
<Main /> <Main />
<NextScript /> <NextScript />
</body> </body>