/** * Runtime + build-time API URL resolution for @regna-verkt/widgets. * * Widgets run in three very different contexts: * 1. Storybook / Vite dev — local dev machine, pointing at the Django * uvicorn server on http://localhost:8765/api/v1. * 2. Production bundle embedded on a customer site — the consumer * decides via `window.__REGNA_API_URL__` so they can route through * their own proxy without rebuilding. * 3. Our own marketing site — uses the public production base * https://regnaverkt.com/api/v1. * * Resolution order: * 1. `window.__REGNA_API_URL__` (runtime, wins over build-time) * 2. `import.meta.env.VITE_REGNA_API_URL` (build-time, Vite/Storybook) * 3. `import.meta.env.VITE_REGNA_DEV_MODE === '1'` (dev shortcut for * the regna-api / regna-ui maintainers — avoids typing the full * localhost URL). * 4. Public prod default. */ declare global { interface Window { __REGNA_API_URL__?: string; } } export declare const REGNA_API_BASE_URL: string; //# sourceMappingURL=widget-config.d.ts.map