@cloudbase/lowcode-builder 1.8.104 → 1.8.106

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.
@@ -91,8 +91,9 @@ interface InormalizeOutput extends INormalizeInput {
91
91
  }
92
92
  export declare function normalizeInputs(inputs: INormalizeInput, { envId, getWebRootPath, }: {
93
93
  envId: string;
94
- getWebRootPath?: ({ appId, deployOptions }: {
95
- appId: any;
94
+ getWebRootPath?: ({ appId, name, deployOptions, }: {
95
+ appId: string;
96
+ name: string;
96
97
  deployOptions: any;
97
98
  }) => string;
98
99
  }): InormalizeOutput;
@@ -117,7 +117,7 @@ async function buildWedaApp({ cals, subAppCalsList: _subAppCalsList = [], depend
117
117
  enableAd,
118
118
  runtimeDynamicConfig,
119
119
  disabled: (_c = cals.extra) === null || _c === void 0 ? void 0 : _c.disabled,
120
- statusPageId: (_d = cals.extra) === null || _d === void 0 ? void 0 : _d.statusPageId,
120
+ statusPageId: ((_d = cals.extra) === null || _d === void 0 ? void 0 : _d.statusPageId) || undefined,
121
121
  privatelinkConfig: privatelinkConfig ? { uin: account === null || account === void 0 ? void 0 : account.uin, ...privatelinkConfig } : undefined,
122
122
  };
123
123
  console.log('domain', domain);
@@ -366,7 +366,7 @@ function normalizeCals(cals, { buildTypeList, envId, deployOptions, appId, getWe
366
366
  }
367
367
  let { appConfig = {} } = cals.extra;
368
368
  let { window = {} } = appConfig;
369
- let path = getWebRootPath({ appId, deployOptions });
369
+ let path = getWebRootPath({ appId, name: cals.name, deployOptions });
370
370
  cals.extra.appConfig = {
371
371
  ...appConfig,
372
372
  window: {
@@ -385,8 +385,9 @@ function normalizeCals(cals, { buildTypeList, envId, deployOptions, appId, getWe
385
385
  }
386
386
  return cals;
387
387
  }
388
- function _getWebRootPath({ appId, deployOptions }) {
389
- return (deployOptions === null || deployOptions === void 0 ? void 0 : deployOptions.mode) === types_1.DEPLOY_MODE.UPLOAD ? `/${appId}/production/` : `/${appId}/preview/`;
388
+ function _getWebRootPath({ appId, name, deployOptions }) {
389
+ const key = name || appId;
390
+ return (deployOptions === null || deployOptions === void 0 ? void 0 : deployOptions.mode) === types_1.DEPLOY_MODE.UPLOAD ? `/${key}/production/` : `/${key}/preview/`;
390
391
  }
391
392
  async function buildComposite({ dependencies, output, isBrowserMpBuilder, }) {
392
393
  var _a, _b;