fix: load .env before imports and improve dev startup

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-05-27 22:22:19 +08:00
parent 8c56dbc459
commit d20a2639b6
9 changed files with 359 additions and 22 deletions

View File

@@ -9,7 +9,8 @@
"template"
],
"scripts": {
"dev": "concurrently \"npm run dev:server\" \"npm run dev:web\"",
"dev": "concurrently -n server,web -c blue,green \"npm run dev:server\" \"npm run dev:web:wait\"",
"dev:web:wait": "wait-on http://127.0.0.1:3001/api/health -t 120000 && npm run dev -w web",
"dev:web": "npm run dev -w web",
"dev:server": "npm run dev -w server",
"build": "npm run build -w web && npm run build -w server",
@@ -18,6 +19,7 @@
"devDependencies": {
"adm-zip": "^0.5.17",
"concurrently": "^9.1.2",
"typescript": "~5.6.2"
"typescript": "~5.6.2",
"wait-on": "^8.0.5"
}
}