@cloudbase/lowcode-builder 1.1.5-alpha.4 → 1.1.5-alpha.6

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.
@@ -172,6 +172,7 @@ async function generateWxMp({ buildContext, weapps, plugins, deployMode, options
172
172
  isProd: deployMode === types_1.DEPLOY_MODE.UPLOAD,
173
173
  clientID: (_a = mainAppData.extra) === null || _a === void 0 ? void 0 : _a.clientId,
174
174
  isPrivateMode,
175
+ tcbApiOrigin: isPrivateMode && domain ? `https://${domain}` : '',
175
176
  },
176
177
  'datasources/datasource-profiles.js.tpl': {
177
178
  datasourceProfiles: (0, util_3.JsonToStringWithVariableName)((0, lowcode_generator_1.getDatasourceProfiles)(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudbase/lowcode-builder",
3
- "version": "1.1.5-alpha.4",
3
+ "version": "1.1.5-alpha.6",
4
4
  "description": "云开发 Tencent CloudBase Framework Low Code Plugin,将低码配置生成完整项目并一键部署云开发资源。",
5
5
  "author": "yhsunshining@gmail.com",
6
6
  "homepage": "https://github.com/TencentCloudBase/cloudbase-framework#readme",
@@ -19,12 +19,17 @@ export default {
19
19
  dataSourceProfiles: dataSourceProfiles,
20
20
  /**
21
21
  * 新的dataset变量配置对象
22
- * key 为页面ID(全局为$global), val 为变量配置数组
22
+ * key 为页面ID(全局为$global), val 为变量配置数组
23
23
  */
24
24
  datasetProfiles: datasetProfiles,
25
25
  /**
26
26
  * 确定调用链路
27
27
  */
28
28
  endpointType: <%= isPrivateMode %> ? 'tcb-api' : 'wechat-service',
29
+ /**
30
+ * 调用链路为 tcb-api 时有效
31
+ * 私有化需要设置
32
+ */
33
+ tcbApiOrigin: '<%= tcbApiOrigin %>',
29
34
  isPrivate: <%= isPrivateMode %>
30
35
  }