Files
edr-platform/apps/edr-freight-web/backoffice/src/constants/apiConfig.ts
2026-06-19 11:29:05 +00:00

5 lines
273 B
TypeScript

// API host is env-driven (set VITE_API_URL per environment, e.g. the remote
// https://edrfreightapi.triaplc.com for prod). Falls back to the local API for dev.
export const API_BASE_URL =
(import.meta.env.VITE_API_URL as string | undefined) ?? 'http://localhost:3001';