15 lines
326 B
TypeScript
15 lines
326 B
TypeScript
/// <reference types="vite/client" />
|
|
|
|
declare global {
|
|
interface Window {
|
|
__FITOS_CONFIG__?: { apiUrl?: string };
|
|
}
|
|
}
|
|
|
|
export const API_URL: string =
|
|
window.__FITOS_CONFIG__?.apiUrl ||
|
|
(import.meta.env.VITE_API_URL as string | undefined) ||
|
|
window.location.origin;
|
|
|
|
export const API_BASE = `${API_URL}/api/v1`;
|