declare global { interface Window { __QIMINGCLAW_DIGITAL_API_BASE__?: string; } } export const basePath = '.'; export const apiBase: string = (() => { const configured = window.__QIMINGCLAW_DIGITAL_API_BASE__?.replace(/\/+$/, ''); return configured ?? ''; })(); export const apiOrigin = (): string => '';