export const API_BASE = import.meta.env.VITE_API_BASE || ""; export function apiUrl(path) { if (!path.startsWith("/")) path = "/" + path; return `${API_BASE}${path}`; }