(function () { const host = window.location.hostname; // Environment configurations const environments = { 'zeiss.abn.be': { REACT_APP_ENV_DOMAIN: "production.app.smartlog.com", REACT_APP_ENV_REALM: "zeiss" }, 'dashboard.smartlog.com': { REACT_APP_ENV_DOMAIN: "production.app.smartlog.com", REACT_APP_ENV_REALM: "smartlog" }, 'imelda.smartlog.com': { REACT_APP_ENV_DOMAIN: "production.app.smartlog.com", REACT_APP_ENV_REALM: "imelda" }, 'dashboard.abn-cleanroomtechnology.com': { REACT_APP_ENV_DOMAIN: "production.app.smartlog.com", REACT_APP_ENV_REALM: "abn-cleanroom-tech" }, 'dashboard.abn.be': { REACT_APP_ENV_DOMAIN: "production.app.smartlog.com", REACT_APP_ENV_REALM: "abn" }, 'validation.smartlog.com': { REACT_APP_ENV_DOMAIN: "production.app.smartlog.com", REACT_APP_ENV_REALM: "validation" }, 'admin.production.app.smartlog.com': { REACT_APP_ENV_DOMAIN: "production.app.smartlog.com", REACT_APP_ENV_REALM: "master" }, }; // Get the appropriate environment configuration const envConfig = environments[host]; // Set the environment variables window.ENV = envConfig; window.runtimeConfig = { filesRoot: "https://assets.production.app.smartlog.com", mqttBasePath: "wss://mqtt.production.app.smartlog.com:443/mqtt", isTest: "false", dashboard_official_version: "6.3.3", dashboard_official_info_url: "https://www.smartlog.technology/release-platform/6-3-3" }; })();