This commit is contained in:
hailin 2025-06-25 18:02:00 +08:00
parent 811efaef32
commit 1a37e37f13
2 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ let supabaseUrl = "http://localhost:8000"
if (typeof window === "undefined") { if (typeof window === "undefined") {
// ✅ SSR 时动态加载,不会触发 headers() 静态报错 // ✅ SSR 时动态加载,不会触发 headers() 静态报错
const load = async () => { const load = async () => {
const { loadSupabaseUrl } = await import("@/lib/runtime-env/get-runtime-env-server") const { loadSupabaseUrl } = await import("@/lib/runtime-env/server")
const url = await loadSupabaseUrl() const url = await loadSupabaseUrl()
if (url) { if (url) {
supabaseUrl = url supabaseUrl = url