diff --git a/apps/edr-freight-web/backoffice/src/constants/apiConfig.ts b/apps/edr-freight-web/backoffice/src/constants/apiConfig.ts index 07e271cb6..842276815 100644 --- a/apps/edr-freight-web/backoffice/src/constants/apiConfig.ts +++ b/apps/edr-freight-web/backoffice/src/constants/apiConfig.ts @@ -1,12 +1,7 @@ - -export const API_BASE_URL = 'https://edrfreightapi.triaplc.com'; -//export const API_BASE_URL = 'http://localhost:3001'; - - +export const API_BASE_URL = import.meta.env.VITE_BASE_API_URL; // export const API_BASE_URL = 'http://localhost:3001'; - /** * URL that streams an uploaded file through the API by its UUID. Routes the * bytes through `GET /api/files/:id` (served from MinIO with backend diff --git a/apps/edr-freight-web/portal/src/constants/apiConfig.ts b/apps/edr-freight-web/portal/src/constants/apiConfig.ts index 07496364b..a285a8fd2 100644 --- a/apps/edr-freight-web/portal/src/constants/apiConfig.ts +++ b/apps/edr-freight-web/portal/src/constants/apiConfig.ts @@ -1,5 +1,4 @@ -export const API_BASE_URL = 'https://edrfreightapi.triaplc.com'; -//export const API_BASE_URL = 'http://localhost:3001'; +export const API_BASE_URL = import.meta.env.VITE_BASE_API_URL; /** * URL that streams an uploaded file through the API by its UUID. Routes the