From 2c1daebf74d99bbdb58077808bde7ebee8fd1dc6 Mon Sep 17 00:00:00 2001 From: hailin Date: Wed, 25 Jun 2025 13:54:21 +0800 Subject: [PATCH] . --- chatdesk-ui/lib/ipconfig.ts | 33 --------------------------------- 1 file changed, 33 deletions(-) diff --git a/chatdesk-ui/lib/ipconfig.ts b/chatdesk-ui/lib/ipconfig.ts index cd9f9f2..235dc9a 100644 --- a/chatdesk-ui/lib/ipconfig.ts +++ b/chatdesk-ui/lib/ipconfig.ts @@ -6,39 +6,6 @@ // return process.env[key]; // } - - - -// let _env: Record | null = null -// export function getRuntimeEnv(key: string): string | undefined { -// console.log("============>>Getting Supabase API URL.") - -// if (typeof window !== "undefined") { -// if (!_env && typeof window.RUNTIME_ENV !== "undefined") { -// _env = window.RUNTIME_ENV -// console.log("[browser-side] Retrieved API endpoint from window.RUNTIME_ENV:", _env); -// } - -// if (_env) { -// console.log("[browser-side]Returning cached API from _env:", _env) -// return _env[key] -// } - -// console.log("[browser-side]No window.RUNTIME_ENV found in browser") -// return undefined -// } - -// // 服务端始终动态读取 process.env -// const val = process.env[key] -// console.log("[server-side] Falling back to process.env for key:", key, "value:", val) -// return val -// } - - - - - - let _env: Record | null = null // 最大重试次数