mirror of
https://github.com/Tria-plc/emaui.git
synced 2026-08-26 13:02:50 +00:00
VITE_BASE_API_URL with a localhost:3001/api fallback was re-derived in six files across libs/api, libs/auth, the portal and the backoffice — and a seventh site (UserManagementPage) read the env raw with no fallback at all, handing the IAM user-management app an undefined apiUrl whenever no .env was present. BASE_API_URL in base-query-with-reauth.ts is now the single definition, exported from @ema-platform/api; every other site imports it. Trims the env value and treats blank as unset, matching how the backend reads its own keys.