// Hardcoded default relay URL. Recap users never see or configure this // — it's baked into the build so Grant (operator) controls relay // routing entirely through Recap version updates. Bump this constant // in a new Recap release to point everyone at a different relay host. // // Empty string disables the relay path entirely (the "Relay (comped // credits)" picker option will fail with "baseURL required" — caught // by the provider-not-configured guard upstream). // // Override at runtime via the RECAP_RELAY_BASE_URL env var for local // dev testing only — there's no StartOS action exposed for this, so // production installs always use the hardcoded value. const DEFAULT_RELAY_BASE_URL = "https://relay.keysat.xyz"; export function getRelayBaseURL() { const fromEnv = (process.env.RECAP_RELAY_BASE_URL || "").trim(); return fromEnv || DEFAULT_RELAY_BASE_URL; }