create-nocobase-app 0.5.0-alpha.31 → 0.5.0-alpha.35
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-nocobase-app",
|
|
3
|
-
"version": "0.5.0-alpha.
|
|
3
|
+
"version": "0.5.0-alpha.35",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"types": "lib/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
"license": "MIT",
|
|
17
17
|
"dependencies": {
|
|
18
|
+
"@nocobase/utils": "^0.5.0-alpha.35",
|
|
18
19
|
"@umijs/utils": "3.5.17",
|
|
19
20
|
"commander": "^8.2.0",
|
|
20
21
|
"execa": "^5.1.1",
|
|
@@ -23,5 +24,5 @@
|
|
|
23
24
|
"bin": {
|
|
24
25
|
"create-nocobase-app": "bin/create-nocobase-app.js"
|
|
25
26
|
},
|
|
26
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "2b81a6af327ee784a6943aff6e028fde3298dec9"
|
|
27
28
|
}
|
|
@@ -30,7 +30,7 @@ ADMIN_PASSWORD=admin
|
|
|
30
30
|
# STORAGE (Initialization only)
|
|
31
31
|
|
|
32
32
|
# local or ali-oss
|
|
33
|
-
|
|
33
|
+
DEFAULT_STORAGE_TYPE=local
|
|
34
34
|
|
|
35
35
|
# LOCAL STORAGE
|
|
36
36
|
LOCAL_STORAGE_USE_STATIC_SERVER=true
|
|
@@ -42,3 +42,10 @@ ALI_OSS_REGION=oss-cn-beijing
|
|
|
42
42
|
ALI_OSS_ACCESS_KEY_ID=
|
|
43
43
|
ALI_OSS_ACCESS_KEY_SECRET=
|
|
44
44
|
ALI_OSS_BUCKET=
|
|
45
|
+
|
|
46
|
+
# AWS
|
|
47
|
+
AWS_ACCESS_KEY_ID=
|
|
48
|
+
AWS_SECRET_ACCESS_KEY=
|
|
49
|
+
AWS_S3_REGION=
|
|
50
|
+
AWS_S3_BUCKET=
|
|
51
|
+
AWS_S3_STORAGE_BASE_URL=
|
|
@@ -22,6 +22,18 @@ DB_STORAGE=db.sqlite
|
|
|
22
22
|
# set to 'on' to enable log
|
|
23
23
|
DB_LOG_SQL=
|
|
24
24
|
|
|
25
|
+
# API & APP
|
|
26
|
+
|
|
27
|
+
NOCOBASE_ENV=
|
|
28
|
+
|
|
29
|
+
# api server access point will be proxied from app(web when `umi dev`)
|
|
30
|
+
API_ORIGIN_DEV=http://localhost:13002
|
|
31
|
+
# api server access point for app(web when build)
|
|
32
|
+
API_ORIGIN=
|
|
33
|
+
|
|
34
|
+
# api base path endpoint for app(web)
|
|
35
|
+
API_BASE_PATH=/api/
|
|
36
|
+
|
|
25
37
|
# ADMIN USER (Initialization only)
|
|
26
38
|
|
|
27
39
|
ADMIN_EMAIL=admin@nocobase.com
|
|
@@ -30,7 +42,7 @@ ADMIN_PASSWORD=admin123
|
|
|
30
42
|
# STORAGE (Initialization only)
|
|
31
43
|
|
|
32
44
|
# local or ali-oss
|
|
33
|
-
|
|
45
|
+
DEFAULT_STORAGE_TYPE=local
|
|
34
46
|
|
|
35
47
|
# LOCAL STORAGE
|
|
36
48
|
LOCAL_STORAGE_USE_STATIC_SERVER=true
|
|
@@ -42,3 +54,10 @@ ALI_OSS_REGION=oss-cn-beijing
|
|
|
42
54
|
ALI_OSS_ACCESS_KEY_ID=
|
|
43
55
|
ALI_OSS_ACCESS_KEY_SECRET=
|
|
44
56
|
ALI_OSS_BUCKET=
|
|
57
|
+
|
|
58
|
+
# AWS
|
|
59
|
+
AWS_ACCESS_KEY_ID=
|
|
60
|
+
AWS_SECRET_ACCESS_KEY=
|
|
61
|
+
AWS_S3_REGION=
|
|
62
|
+
AWS_S3_BUCKET=
|
|
63
|
+
AWS_S3_STORAGE_BASE_URL=
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { defineConfig } from 'umi';
|
|
2
2
|
import dotenv from 'dotenv';
|
|
3
3
|
import path from 'path';
|
|
4
|
+
import { getUmiConfig } from '@nocobase/utils';
|
|
4
5
|
|
|
5
6
|
dotenv.config({
|
|
6
7
|
path: path.resolve(__dirname, './.env'),
|
|
7
8
|
});
|
|
8
9
|
|
|
10
|
+
const umiConfig = getUmiConfig();
|
|
11
|
+
|
|
9
12
|
process.env.MFSU_AD = 'none';
|
|
10
13
|
|
|
11
14
|
export default defineConfig({
|
|
@@ -14,15 +17,12 @@ export default defineConfig({
|
|
|
14
17
|
type: 'none',
|
|
15
18
|
},
|
|
16
19
|
define: {
|
|
17
|
-
|
|
18
|
-
'process.env.API_PORT': process.env.API_PORT || '13001',
|
|
20
|
+
...umiConfig.define,
|
|
19
21
|
},
|
|
22
|
+
// only proxy when using `umi dev`
|
|
23
|
+
// if the assets are built, will not proxy
|
|
20
24
|
proxy: {
|
|
21
|
-
|
|
22
|
-
target: `http://localhost:${process.env.API_PORT || '13001'}/`,
|
|
23
|
-
changeOrigin: true,
|
|
24
|
-
pathRewrite: { '^/api': '/api' },
|
|
25
|
-
},
|
|
25
|
+
...umiConfig.proxy,
|
|
26
26
|
},
|
|
27
27
|
routes: [{ path: '/', exact: false, component: '@/pages/index' }],
|
|
28
28
|
fastRefresh: {},
|