14 lines
232 B
TypeScript
14 lines
232 B
TypeScript
|
|
declare global {
|
||
|
|
interface Window {
|
||
|
|
__CAMELEER_CONFIG__?: {
|
||
|
|
apiBaseUrl?: string;
|
||
|
|
};
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
export const config = {
|
||
|
|
get apiBaseUrl(): string {
|
||
|
|
return window.__CAMELEER_CONFIG__?.apiBaseUrl ?? '/api/v1';
|
||
|
|
},
|
||
|
|
};
|