This commit is contained in:
2026-08-08 11:33:09 +08:00
parent cb0792963c
commit bc14ec7bd2
12 changed files with 59 additions and 4 deletions
+14
View File
@@ -0,0 +1,14 @@
export type AdminRuntimeConfig = {
clientWebUrl?: string
}
declare global {
interface Window {
__CHONGCHONG_RUNTIME_CONFIG__?: AdminRuntimeConfig
}
}
export function getClientWebUrl(): string {
const runtimeUrl = window.__CHONGCHONG_RUNTIME_CONFIG__?.clientWebUrl
return String(runtimeUrl || import.meta.env.VITE_CLIENT_WEB_URL || '').trim()
}