function getEnvConfig() {
  var _a, _b;
  const isProd = ((_a = window.__ENV__) == null ? void 0 : _a.NODE_ENV) === "production" || ((_b = window.__ENV__) == null ? void 0 : _b.isProd);
  const isProdByHost = /(prod|\.com$)/.test(window.location.hostname);
  const finalIsProd = isProd ?? isProdByHost;
  const configName = finalIsProd ? "configProd" : "configDev";
  return window[configName] || window.parent[configName];
}
const envConfig = getEnvConfig();
export {
  envConfig as default
};
