优化配置文件

This commit is contained in:
yml
2026-05-21 19:29:00 +08:00
parent 589de4b50b
commit 7513958a4c
23 changed files with 1061 additions and 676 deletions
+1 -1
View File
@@ -288,7 +288,7 @@ Node 侧实现等价为:
需要修改:
- `apps/backend/config/default.cjs`
- `apps/backend/src/config/defaults.ts`
- `apps/backend/src/config/runtime.js`
- `apps/backend/src/types/runtime-config.js`
- `apps/backend/src/index.js`
+1 -2
View File
@@ -199,7 +199,7 @@
1. 新增 `tsconfig.build.json`
2. `npm run build` 输出 `dist`,并复制数据库 migration SQL
3. `npm run dev` 改为 `tsx watch --clear-screen=false --include config src/index.ts`
3. `npm run dev` 改为 `tsx watch --clear-screen=false src/index.ts`
4. `npm test` 改为 `node --import tsx --test ...`
5. `npm run db:migrate` 改为 `tsx src/db/migrate.ts`
6. `npm run start` 改为 `node dist/index.js`
@@ -240,7 +240,6 @@
20. `runtime.js` 已拆分并迁移到 `.ts`
- `src/config/runtime.ts`
- `src/config/runtime-env.ts`
- `src/config/runtime-loader.ts`
- `src/config/runtime-merge.ts`
21. env 文件加载、env 值解析、默认配置加载、深合并逻辑已从 runtime 主入口分离
22. Docker 内再次验证通过:
@@ -409,7 +409,7 @@ MD5(password).toString(Hex)
建议在:
- `apps/backend/config/default.cjs`
- `apps/backend/src/config/defaults.ts`
- `apps/backend/src/types/runtime-config.js`
- `apps/backend/src/config/runtime.js`