From 14cd36579b5cc12bc80f90930d4dbf3b112706bf Mon Sep 17 00:00:00 2001 From: hailin Date: Wed, 21 May 2025 13:30:52 +0800 Subject: [PATCH] . --- chatdesk-ui/app/pages/_document.tsx | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) 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 加载顺序 */} -