This commit is contained in:
parent
426d3181d8
commit
e745855460
|
|
@ -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>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue