@nocobase/cli 2.0.0-beta.5 → 2.0.0-beta.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.
- package/package.json +4 -4
- package/src/util.js +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/cli",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.6",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "AGPL-3.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": "2.0.0-beta.
|
|
11
|
+
"@nocobase/app": "2.0.0-beta.6",
|
|
12
12
|
"@nocobase/license-kit": "^0.3.5",
|
|
13
13
|
"@types/fs-extra": "^11.0.1",
|
|
14
14
|
"@umijs/utils": "3.5.20",
|
|
@@ -27,12 +27,12 @@
|
|
|
27
27
|
"tsx": "^4.19.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@nocobase/devtools": "2.0.0-beta.
|
|
30
|
+
"@nocobase/devtools": "2.0.0-beta.6"
|
|
31
31
|
},
|
|
32
32
|
"repository": {
|
|
33
33
|
"type": "git",
|
|
34
34
|
"url": "git+https://github.com/nocobase/nocobase.git",
|
|
35
35
|
"directory": "packages/core/cli"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "c360083cbb1273e5522c09d1dd0696ee83fba8b5"
|
|
38
38
|
}
|
package/src/util.js
CHANGED
|
@@ -297,6 +297,7 @@ function buildIndexHtml(force = false) {
|
|
|
297
297
|
const data = fs.readFileSync(tpl, 'utf-8');
|
|
298
298
|
const replacedData = data
|
|
299
299
|
.replace(/\{\{env.APP_PUBLIC_PATH\}\}/g, process.env.APP_PUBLIC_PATH)
|
|
300
|
+
.replace(/\{\{env.API_CLIENT_SHARE_TOKEN\}\}/g, process.env.API_CLIENT_SHARE_TOKEN || 'false')
|
|
300
301
|
.replace(/\{\{env.API_CLIENT_STORAGE_TYPE\}\}/g, process.env.API_CLIENT_STORAGE_TYPE)
|
|
301
302
|
.replace(/\{\{env.API_CLIENT_STORAGE_PREFIX\}\}/g, process.env.API_CLIENT_STORAGE_PREFIX)
|
|
302
303
|
.replace(/\{\{env.API_BASE_URL\}\}/g, process.env.API_BASE_URL || process.env.API_BASE_PATH)
|
|
@@ -360,6 +361,7 @@ exports.initEnv = function initEnv() {
|
|
|
360
361
|
APP_PORT: 13000,
|
|
361
362
|
API_BASE_PATH: '/api/',
|
|
362
363
|
API_CLIENT_STORAGE_PREFIX: 'NOCOBASE_',
|
|
364
|
+
API_CLIENT_SHARE_TOKEN: 'false',
|
|
363
365
|
API_CLIENT_STORAGE_TYPE: 'localStorage',
|
|
364
366
|
// DB_DIALECT: 'sqlite',
|
|
365
367
|
DB_STORAGE: 'storage/db/nocobase.sqlite',
|