"use strict"; // For a separate API hostname, the host owner can set apiBaseOverride here. // This file contains public addresses only, never credentials. (() => { const apiBaseOverride = ""; const defaultBase = ["istarcloud.uk", "www.istarcloud.uk"].includes(location.hostname) ? "https://api.istarcloud.uk" : location.origin; window.IstarConfig = Object.freeze({apiBase: (apiBaseOverride || defaultBase).replace(/\/+$/, "")}); })();