From 1754c18ede127ea9ad4bfa1e124aaad4868cddc0 Mon Sep 17 00:00:00 2001 From: ghost2023 Date: Wed, 1 Jul 2026 14:46:24 +0300 Subject: [PATCH] fix: apiconfig --- apps/edr-freight-web/backoffice/src/constants/apiConfig.ts | 7 +------ apps/edr-freight-web/portal/src/constants/apiConfig.ts | 3 +-- 2 files changed, 2 insertions(+), 8 deletions(-) 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