Point the API client at a specific LWT server, persisting the choice to
localStorage so a packaged client remembers it across launches. Pass
null/'' to reset — forgetting both the override and the persisted value so
resolution falls back to localStorage/meta/same-origin.
This function owns URL construction only. Cross-origin use additionally
requires the server to send permissive CORS headers and — for cookie
sessions — credentials: 'include'; token auth avoids the CSRF-meta
dependency. See ROADMAP.md (Phase 1) for those follow-ups.
Point the API client at a specific LWT server, persisting the choice to localStorage so a packaged client remembers it across launches. Pass
null/'' to reset — forgetting both the override and the persisted value so resolution falls back to localStorage/meta/same-origin.This function owns URL construction only. Cross-origin use additionally requires the server to send permissive CORS headers and — for cookie sessions —
credentials: 'include'; token auth avoids the CSRF-meta dependency. See ROADMAP.md (Phase 1) for those follow-ups.