diff --git a/chatdesk-ui/app/pages/_document.tsx b/chatdesk-ui/app/pages/_document.tsx index f1bce58..0d6a1cb 100644 --- a/chatdesk-ui/app/pages/_document.tsx +++ b/chatdesk-ui/app/pages/_document.tsx @@ -1,11 +1,21 @@ +/* + eslint-disable @next/next/no-sync-scripts + ⛔ Please do not remove: + We are enforcing synchronous loading of /env.js here to inject window.RUNTIME_ENV + to ensure dynamic configurations like Supabase are available before React starts. +*/ import { Html, Head, Main, NextScript } from "next/document"; +import Script from "next/script"; export default function Document() { return ( - {/* 使用 defer 确保 env.js 加载顺序 */} -