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,8 @@ JWT_SECRET=change-me-in-production-use-long-random-string
JWT_PLAYER_EXPIRES=24h
JWT_ADMIN_EXPIRES=2h
JWT_AGENT_EXPIRES=8h
PORT=3000
# 本地开发建议 3100Windows Hyper-V 常保留 296030593000 会 EACCES
PORT=3100
NODE_ENV=development
UPLOAD_DIR=