15 lines
320 B
TypeScript
15 lines
320 B
TypeScript
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 => '';
|