Commit a79f8161ee0ad4d5743a66402a58a714b124c631
1 parent
578db391
🐹 feat(*): 调整环境变量和配置文件
Showing
7 changed files
with
7489 additions
and
5996 deletions
Too many changes to show.
To preserve performance only 6 of 7 files are displayed.
.env.prod
@@ -2,3 +2,4 @@ XHOST=local.feewee.cn | @@ -2,3 +2,4 @@ XHOST=local.feewee.cn | ||
2 | API_HOST=https://gate.feewee.cn | 2 | API_HOST=https://gate.feewee.cn |
3 | FILE_HOST=https://upload.feewee.cn | 3 | FILE_HOST=https://upload.feewee.cn |
4 | MODERN_APP_ID=qY50NiBo | 4 | MODERN_APP_ID=qY50NiBo |
5 | +XSIGN=4262e3859e855d365468f6343ffff05f |
.env.staging
@@ -2,3 +2,4 @@ XHOST=testlocal.feewee.cn | @@ -2,3 +2,4 @@ XHOST=testlocal.feewee.cn | ||
2 | API_HOST=https://testgate.feewee.cn | 2 | API_HOST=https://testgate.feewee.cn |
3 | FILE_HOST=https://testupload.feewee.cn | 3 | FILE_HOST=https://testupload.feewee.cn |
4 | MODERN_APP_ID=qY50NiBo | 4 | MODERN_APP_ID=qY50NiBo |
5 | +XSIGN=dad52b5719e3202e32a6619e14d0ccec |
.env.ultra
0 → 100644
environment.d.ts
@@ -10,6 +10,8 @@ declare namespace NodeJS { | @@ -10,6 +10,8 @@ declare namespace NodeJS { | ||
10 | readonly XPORT: string; | 10 | readonly XPORT: string; |
11 | /** 项目名称 */ | 11 | /** 项目名称 */ |
12 | readonly APP_NAME?: string; | 12 | readonly APP_NAME?: string; |
13 | + /** 通用签名 */ | ||
14 | + readonly XSIGN?: string; | ||
13 | 15 | ||
14 | /************ 运行时参数 ***********************/ | 16 | /************ 运行时参数 ***********************/ |
15 | /** appid */ | 17 | /** appid */ |
modern.config.ts
@@ -27,6 +27,7 @@ export default defineConfig({ | @@ -27,6 +27,7 @@ export default defineConfig({ | ||
27 | 'process.env.MODERN_GRAY_TAG': process.env.MODERN_GRAY_TAG, | 27 | 'process.env.MODERN_GRAY_TAG': process.env.MODERN_GRAY_TAG, |
28 | 'process.env.MODERN_APP_ID': process.env.MODERN_APP_ID, | 28 | 'process.env.MODERN_APP_ID': process.env.MODERN_APP_ID, |
29 | 'process.env.MODERN_CALKEY': process.env.MODERN_CALKEY, | 29 | 'process.env.MODERN_CALKEY': process.env.MODERN_CALKEY, |
30 | + 'process.env.MODERN_XSIGN': process.env.XSIGN, | ||
30 | }, | 31 | }, |
31 | }, | 32 | }, |
32 | tools: { | 33 | tools: { |
@@ -46,13 +47,13 @@ export default defineConfig({ | @@ -46,13 +47,13 @@ export default defineConfig({ | ||
46 | }, | 47 | }, |
47 | devServer: { | 48 | devServer: { |
48 | proxy: { | 49 | proxy: { |
49 | - '/api': { | 50 | + '/api/': { |
50 | target: process.env.API_HOST, | 51 | target: process.env.API_HOST, |
51 | pathRewrite: { '^/api': '' }, | 52 | pathRewrite: { '^/api': '' }, |
52 | }, | 53 | }, |
53 | - '/api2': { | 54 | + '/api2/': { |
54 | target: process.env.FILE_HOST, | 55 | target: process.env.FILE_HOST, |
55 | - pathRewrite: { '^/api2': '' }, | 56 | + pathRewrite: { '^/api2/file': '' }, |
56 | }, | 57 | }, |
57 | }, | 58 | }, |
58 | }, | 59 | }, |
package.json
@@ -23,9 +23,9 @@ | @@ -23,9 +23,9 @@ | ||
23 | "dist/" | 23 | "dist/" |
24 | ], | 24 | ], |
25 | "dependencies": { | 25 | "dependencies": { |
26 | - "@feewee/h5app-common": "^0.1.18", | ||
27 | - "@modern-js/runtime": "~2.49.2", | ||
28 | - "ahooks": "^3.7.11", | 26 | + "@feewee/h5app-common": "^0.1.39", |
27 | + "@modern-js/runtime": "~2.49.4", | ||
28 | + "ahooks": "^3.8.0", | ||
29 | "clsx": "^2.1.1", | 29 | "clsx": "^2.1.1", |
30 | "dayjs": "^1.11.11", | 30 | "dayjs": "^1.11.11", |
31 | "react": "^18.3.1", | 31 | "react": "^18.3.1", |
@@ -34,22 +34,22 @@ | @@ -34,22 +34,22 @@ | ||
34 | }, | 34 | }, |
35 | "devDependencies": { | 35 | "devDependencies": { |
36 | "@feewee/fabric": "^1.1.8", | 36 | "@feewee/fabric": "^1.1.8", |
37 | - "@modern-js-app/eslint-config": "~2.49.2", | ||
38 | - "@modern-js/app-tools": "~2.49.2", | ||
39 | - "@modern-js/eslint-config": "~2.49.2", | ||
40 | - "@modern-js/plugin-tailwindcss": "~2.49.2", | ||
41 | - "@modern-js/tsconfig": "~2.49.2", | 37 | + "@modern-js-app/eslint-config": "~2.49.4", |
38 | + "@modern-js/app-tools": "~2.49.4", | ||
39 | + "@modern-js/eslint-config": "~2.49.4", | ||
40 | + "@modern-js/plugin-tailwindcss": "~2.49.4", | ||
41 | + "@modern-js/tsconfig": "~2.49.4", | ||
42 | "@types/jest": "^29.5.12", | 42 | "@types/jest": "^29.5.12", |
43 | - "@types/node": "^18.19.32", | ||
44 | - "@types/react": "^18.3.1", | 43 | + "@types/node": "^18.19.39", |
44 | + "@types/react": "^18.3.3", | ||
45 | "@types/react-dom": "^18.3.0", | 45 | "@types/react-dom": "^18.3.0", |
46 | "cross-env": "^7.0.3", | 46 | "cross-env": "^7.0.3", |
47 | "eslint": "^8.57.0", | 47 | "eslint": "^8.57.0", |
48 | "husky": "^9.0.11", | 48 | "husky": "^9.0.11", |
49 | - "lint-staged": "^15.2.2", | ||
50 | - "prettier": "^3.2.5", | ||
51 | - "rimraf": "^5.0.5", | ||
52 | - "tailwindcss": "^3.4.3", | ||
53 | - "typescript": "^5.4.5" | 49 | + "lint-staged": "^15.2.7", |
50 | + "prettier": "^3.3.2", | ||
51 | + "rimraf": "^5.0.7", | ||
52 | + "tailwindcss": "^3.4.4", | ||
53 | + "typescript": "^5.5.2" | ||
54 | } | 54 | } |
55 | } | 55 | } |