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
.env.staging
.env.ultra
0 → 100644
environment.d.ts
modern.config.ts
... | ... | @@ -27,6 +27,7 @@ export default defineConfig({ |
27 | 27 | 'process.env.MODERN_GRAY_TAG': process.env.MODERN_GRAY_TAG, |
28 | 28 | 'process.env.MODERN_APP_ID': process.env.MODERN_APP_ID, |
29 | 29 | 'process.env.MODERN_CALKEY': process.env.MODERN_CALKEY, |
30 | + 'process.env.MODERN_XSIGN': process.env.XSIGN, | |
30 | 31 | }, |
31 | 32 | }, |
32 | 33 | tools: { |
... | ... | @@ -46,13 +47,13 @@ export default defineConfig({ |
46 | 47 | }, |
47 | 48 | devServer: { |
48 | 49 | proxy: { |
49 | - '/api': { | |
50 | + '/api/': { | |
50 | 51 | target: process.env.API_HOST, |
51 | 52 | pathRewrite: { '^/api': '' }, |
52 | 53 | }, |
53 | - '/api2': { | |
54 | + '/api2/': { | |
54 | 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 | 23 | "dist/" |
24 | 24 | ], |
25 | 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 | 29 | "clsx": "^2.1.1", |
30 | 30 | "dayjs": "^1.11.11", |
31 | 31 | "react": "^18.3.1", |
... | ... | @@ -34,22 +34,22 @@ |
34 | 34 | }, |
35 | 35 | "devDependencies": { |
36 | 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 | 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 | 45 | "@types/react-dom": "^18.3.0", |
46 | 46 | "cross-env": "^7.0.3", |
47 | 47 | "eslint": "^8.57.0", |
48 | 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 | } | ... | ... |