fix(dev): 本地 API 默认端口改为 3100 避开 Windows 保留段

Hyper-V 常保留 2960-3059,3000 会 EACCES;ensure-port-free 与 Vite 代理从 apps/api/.env 读取 PORT
This commit is contained in:
2026-06-23 15:10:43 +08:00
parent b01213f637
commit 43fa8ebef0
6 changed files with 42 additions and 7 deletions

View File

@@ -4,7 +4,7 @@
"private": true,
"scripts": {
"build": "nest build",
"dev": "node ../../scripts/ensure-port-free.mjs 3000 && nest start --watch",
"dev": "node ../../scripts/ensure-port-free.mjs && nest start --watch",
"start": "node dist/main",
"test": "jest",
"test:watch": "jest --watch",