mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-28 16:00:56 +00:00
Merge pull request #243 from Tria-plc/freight_feature/profile
Freight feature/profile
This commit is contained in:
@@ -1,10 +1,3 @@
|
||||
// Accept either a host-only URL or one that already ends with `/api`.
|
||||
// The HTTP client appends `/api` itself, so we normalize here to avoid
|
||||
// accidental `/api/api/...` requests from env values.
|
||||
const rawApiBaseUrl =
|
||||
(import.meta.env.VITE_API_URL as string | undefined) ?? "http://localhost:3001";
|
||||
// export const API_BASE_URL = 'https://edrfreightapi.triaplc.com';
|
||||
|
||||
export const API_BASE_URL = rawApiBaseUrl
|
||||
.trim()
|
||||
.replace(/\/+$/, "")
|
||||
.replace(/\/api$/, "");
|
||||
export const API_BASE_URL = 'http://localhost:3001';
|
||||
|
||||
Reference in New Issue
Block a user