@aliyun-obv/api 0.3.31 → 0.3.32

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.
Files changed (2) hide show
  1. package/dist/api.es.js +11 -11
  2. package/package.json +1 -1
package/dist/api.es.js CHANGED
@@ -270,35 +270,35 @@ function getObvDomain() {
270
270
  }
271
271
  if ((_b2 = window.ALIYUN_CONSOLE_CONFIG) == null ? void 0 : _b2.LOCAL) {
272
272
  if (location.hostname === "localhost") {
273
- return `http://pre-observability:${window.location.port}`;
273
+ return `http://pre-cmsnext:${window.location.port}`;
274
274
  }
275
- if (location.hostname.includes("observability")) {
275
+ if (location.hostname.includes("observability") || location.hostname.includes("cmsnext")) {
276
276
  return `http://${location.hostname}:${window.location.port}`;
277
277
  }
278
278
  if (window.location.hostname.includes("stg")) {
279
- return `http://pre-stg-observability:${window.location.port}`;
279
+ return `http://pre-stg-cmsnext:${window.location.port}`;
280
280
  }
281
- return `http://pre-observability:${window.location.port}`;
281
+ return `http://pre-cmsnext:${window.location.port}`;
282
282
  }
283
283
  if (isPre) {
284
284
  if (is4Service(window.location)) {
285
- return `https://pre-observability4service.console.aliyun.com`;
285
+ return `https://pre-cmsnext4service.console.aliyun.com`;
286
286
  }
287
- if (location.hostname.includes("observability")) {
287
+ if (location.hostname.includes("observability") || location.hostname.includes("cmsnext")) {
288
288
  return location.origin;
289
289
  }
290
290
  if (window.location.hostname.includes("stg")) {
291
- return `https://pre-stg-observability.console.aliyun.com`;
291
+ return `https://pre-stg-cmsnext.console.aliyun.com`;
292
292
  }
293
- return `https://pre-observability.console.aliyun.com`;
293
+ return `https://pre-cmsnext.console.aliyun.com`;
294
294
  }
295
295
  if (is4Service(window.location)) {
296
- return `https://observability4service.console.aliyun.com`;
296
+ return `https://cmsnext4service.console.aliyun.com`;
297
297
  }
298
- if (location.hostname.includes("observability")) {
298
+ if (location.hostname.includes("observability") || location.hostname.includes("cmsnext")) {
299
299
  return location.origin;
300
300
  }
301
- return `https://observability.console.aliyun.com`;
301
+ return `https://cmsnext.console.aliyun.com`;
302
302
  }
303
303
  function getConfig(key) {
304
304
  window.ALIYUN_SLS_CONSOLE_CONFIG = window.ALIYUN_SLS_CONSOLE_CONFIG || {};
package/package.json CHANGED
@@ -15,5 +15,5 @@
15
15
  "styled-components": "^5.2.0"
16
16
  },
17
17
  "devDependencies": {},
18
- "version": "0.3.31"
18
+ "version": "0.3.32"
19
19
  }