This commit is contained in:
hailin 2025-05-21 11:26:42 +08:00
parent 49dd5285d1
commit 82c96338f7
1 changed files with 1 additions and 2 deletions

View File

@ -1,11 +1,10 @@
// pages/_document.tsx
/* eslint-disable @next/next/no-sync-scripts */
import { Html, Head, Main, NextScript } from "next/document"
export default function Document() {
return (
<Html lang="en">
<Head>
{/* ✅ 阻塞加载 env.js在 React 初始化前注入 window.RUNTIME_ENV */}
<script src="/env.js" />
</Head>
<body>