fintechdarkpatterns / src /app /config.ts
Vezolu Vero
Initial commit with live data and Docker config
743409d
Raw
History Blame Contribute Delete
290 Bytes
// Dynamic API URL resolution for local and production environments
export const API_BASE_URL = (import.meta.env.VITE_API_URL as string) ||
(window.location.hostname === 'localhost' || window.location.hostname === '127.0.0.1'
? 'http://127.0.0.1:8000'
: window.location.origin);