mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-27 00:52:50 +00:00
12 lines
319 B
TypeScript
12 lines
319 B
TypeScript
import { getEnvUrl } from "@/shared/config/env";
|
|
|
|
function normalizeBaseUrl(url: string) {
|
|
const u = (url || "").trim();
|
|
if (!u) return "";
|
|
return u.replace(/\/+$/, "").replace(/\/docs$/, "");
|
|
}
|
|
|
|
export const AUDITLOG_API_URL: string = normalizeBaseUrl(
|
|
getEnvUrl("VITE_AUDITLOG_API_URL", false),
|
|
);
|