Adds `lib/apiBase.ts` so the SPA can be repointed at a non-default backend at runtime (via `window.__VELXIO_API_BASE__`) without losing the existing `VITE_API_BASE` build-time override or the default `/api` reverse-proxy behaviour. compilation / libraryService / projectService / metricsService all flow through it now; axios clients use a request interceptor so the base resolves per-request rather than at module-load time. main.tsx grows a `VITE_DESKTOP` flag: when set, the @pro overlay is skipped (the desktop shell handles license + auth natively) and a small `./desktop/index` module is dynamic-imported in its place. OSS builds tree-shake both branches. LandingPage gets a `data-velxio-slot="landing-hero-primary-cta"` marker above the existing hero CTAs so velxio.dev can inject an OS-detect "Download Velxio Desktop" button as the visual primary. The slot is empty in pure OSS. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| apiBase.ts | ||
| proRoutes.ts | ||
| proSaveAction.ts | ||
| proSession.ts | ||