@mx-cartographer/experiences 6.2.0-alpha.al4 → 6.2.0-alpha.al5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +3 -2
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
@@ -19408,13 +19408,14 @@ class EC {
|
|
19408
19408
|
};
|
19409
19409
|
loadEnvironment = async () => {
|
19410
19410
|
try {
|
19411
|
-
|
19411
|
+
console.log(process.env.NODE_ENV);
|
19412
|
+
const n = Object.freeze({
|
19412
19413
|
DEVELOPMENT: "development",
|
19413
19414
|
SANDBOX: "sandbox",
|
19414
19415
|
QA: "qa",
|
19415
19416
|
INTEGRATION: "integration",
|
19416
19417
|
PRODUCTION: "production"
|
19417
|
-
}),
|
19418
|
+
}), i = process.env.NODE_ENV === n.DEVELOPMENT, r = i ? /\bint\b/.test(location.host) ? n.INTEGRATION : /\bqa\b/.test(location.host) ? n.QA : /\bsand\b/.test(location.host) ? n.SANDBOX : n.DEVELOPMENT : n.PRODUCTION;
|
19418
19419
|
V(() => {
|
19419
19420
|
this.environment = r;
|
19420
19421
|
});
|