mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-27 09:42:53 +00:00
5 lines
273 B
TypeScript
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';
|