Skip to content

Commit

Permalink
默认加载@steedos-widgets/[email protected], STEEDOS_AMIS_VERSION可变更版本号
Browse files Browse the repository at this point in the history
  • Loading branch information
yinlianghui committed Jan 5, 2024
1 parent 6b321d8 commit 759494a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/cli/default.steedos.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,20 @@ process.env.STEEDOS_UNPKG_URL = process.env.STEEDOS_UNPKG_URL.replace(/\/+$/, "


if(_.isEmpty(process.env.STEEDOS_AMIS_VERSION)) {
process.env.STEEDOS_AMIS_VERSION = '3.2.0';
process.env.STEEDOS_AMIS_VERSION = '3.6.3-patch.2';
}

if(_.isEmpty(process.env.STEEDOS_AMIS_URL)) {
process.env.STEEDOS_AMIS_URL = process.env.STEEDOS_UNPKG_URL + '/amis@' + process.env.STEEDOS_AMIS_VERSION;
// process.env.STEEDOS_AMIS_URL = process.env.STEEDOS_UNPKG_URL + '/amis@' + process.env.STEEDOS_AMIS_VERSION;
// 默认加载 https://unpkg.steedos.cn/@steedos-widgets/[email protected], STEEDOS_AMIS_VERSION可变更版本号
process.env.STEEDOS_AMIS_URL = process.env.STEEDOS_UNPKG_URL + '/@steedos-widgets/amis@' + process.env.STEEDOS_AMIS_VERSION;
}else{
process.env.STEEDOS_AMIS_URL = process.env.STEEDOS_AMIS_URL.replace("https://unpkg.com", process.env.STEEDOS_UNPKG_URL)
}
process.env.STEEDOS_AMIS_URL = process.env.STEEDOS_AMIS_URL.replace(/\/+$/, "");

if(_.isEmpty(process.env.STEEDOS_PUBLIC_PAGE_ASSETURLS)) {
process.env.STEEDOS_PUBLIC_PAGE_ASSETURLS = process.env.STEEDOS_UNPKG_URL + "/@steedos-widgets/amis-object@1.3.22-beta.3/dist/assets.json";
process.env.STEEDOS_PUBLIC_PAGE_ASSETURLS = process.env.STEEDOS_UNPKG_URL + "/@steedos-widgets/amis-object@3.6.0-beta.7/dist/assets.json";
}

if(_.isEmpty(process.env.SERIALIZER)){
Expand Down

0 comments on commit 759494a

Please sign in to comment.