diff --git a/chatdesk-ui/app/[locale]/layout.tsx b/chatdesk-ui/app/[locale]/layout.tsx
index dd907f4..d973be8 100644
--- a/chatdesk-ui/app/[locale]/layout.tsx
+++ b/chatdesk-ui/app/[locale]/layout.tsx
@@ -125,10 +125,10 @@ export default async function RootLayout({
return (
-
+ {/*
{/* ✅ 注入客户端运行时环境变量 */}
-
+ */}
diff --git a/chatdesk-ui/app/pages/_document.tsx b/chatdesk-ui/app/pages/_document.tsx
new file mode 100644
index 0000000..5170f16
--- /dev/null
+++ b/chatdesk-ui/app/pages/_document.tsx
@@ -0,0 +1,17 @@
+// pages/_document.tsx
+import { Html, Head, Main, NextScript } from "next/document"
+
+export default function Document() {
+ return (
+
+
+ {/* ✅ 阻塞加载 env.js,在 React 初始化前注入 window.RUNTIME_ENV */}
+
+
+
+
+
+
+
+ )
+}