This commit is contained in:
parent
811efaef32
commit
1a37e37f13
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue