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),
);
