Merge pull request #243 from Tria-plc/freight_feature/profile

Freight feature/profile
This commit is contained in:
marshal
2026-06-22 15:49:25 +03:00
committed by GitHub
135 changed files with 8034 additions and 1618 deletions

View File

@@ -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';