declare global {
  interface Window {
    __SALUDUT_CONFIG__?: {
      apiBaseUrl?: string;
    };
  }
}

const rawApiBaseUrl = window.__SALUDUT_CONFIG__?.apiBaseUrl || '/api';
export const API_BASE_URL = rawApiBaseUrl.replace(/\/+$/, '');
