const BASE = import.meta.env.BASE_URL.replace(/\/$/, ""); const OVERRIDE = import.meta.env.VITE_API_BASE_URL?.replace(/\/$/, ""); export const API = OVERRIDE || `${BASE}/api`;