Merge pull request #375 from Tria-plc/fix/apiconfig

fix: api url backoffice
This commit is contained in:
Nathnael Wondisha
2026-06-30 09:22:09 +03:00
committed by GitHub

View File

@@ -1,5 +1,5 @@
//export const API_BASE_URL = 'https://edrfreightapi.triaplc.com';
export const API_BASE_URL = 'http://localhost:3001';
export const API_BASE_URL = "https://edrfreightapi.triaplc.com";
// export const API_BASE_URL = 'http://localhost:3001';
/**
* URL that streams an uploaded file through the API by its UUID. Routes the
@@ -12,4 +12,3 @@ export function fileViewUrl(fileId: string, download = false): string {
const base = `${API_BASE_URL}/api/files/${fileId}`;
return download ? `${base}?download=1` : base;
}