@nocobase/cli 0.20.0-alpha.12 → 0.20.0-alpha.13
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/package.json +4 -4
- package/src/util.js +4 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/cli",
|
|
3
|
-
"version": "0.20.0-alpha.
|
|
3
|
+
"version": "0.20.0-alpha.13",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "./src/index.js",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"nocobase": "./bin/index.js"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@nocobase/app": "0.20.0-alpha.
|
|
11
|
+
"@nocobase/app": "0.20.0-alpha.13",
|
|
12
12
|
"@types/fs-extra": "^11.0.1",
|
|
13
13
|
"@umijs/utils": "3.5.20",
|
|
14
14
|
"chalk": "^4.1.1",
|
|
@@ -25,12 +25,12 @@
|
|
|
25
25
|
"tsx": "^4.6.2"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@nocobase/devtools": "0.20.0-alpha.
|
|
28
|
+
"@nocobase/devtools": "0.20.0-alpha.13"
|
|
29
29
|
},
|
|
30
30
|
"repository": {
|
|
31
31
|
"type": "git",
|
|
32
32
|
"url": "git+https://github.com/nocobase/nocobase.git",
|
|
33
33
|
"directory": "packages/core/cli"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "4c3ff74d14c8726759b65730eba0b15798ba6879"
|
|
36
36
|
}
|
package/src/util.js
CHANGED
|
@@ -348,15 +348,17 @@ exports.initEnv = function initEnv() {
|
|
|
348
348
|
}
|
|
349
349
|
}
|
|
350
350
|
|
|
351
|
-
if (process.env.APP_PUBLIC_PATH) {
|
|
351
|
+
if (!process.env.__env_modified__ && process.env.APP_PUBLIC_PATH) {
|
|
352
352
|
const publicPath = process.env.APP_PUBLIC_PATH.replace(/\/$/g, '');
|
|
353
353
|
const keys = ['API_BASE_PATH', 'WS_PATH', 'PLUGIN_STATICS_PATH'];
|
|
354
354
|
for (const key of keys) {
|
|
355
355
|
process.env[key] = publicPath + process.env[key];
|
|
356
356
|
}
|
|
357
|
+
process.env.__env_modified__ = true;
|
|
357
358
|
}
|
|
358
359
|
|
|
359
|
-
if (process.env.APP_SERVER_BASE_URL && !process.env.API_BASE_URL) {
|
|
360
|
+
if (!process.env.__env_modified__ && process.env.APP_SERVER_BASE_URL && !process.env.API_BASE_URL) {
|
|
360
361
|
process.env.API_BASE_URL = process.env.APP_SERVER_BASE_URL + process.env.API_BASE_PATH;
|
|
362
|
+
process.env.__env_modified__ = true;
|
|
361
363
|
}
|
|
362
364
|
};
|