[优化] 更新开发环境配置,统一代理 HTTP 和 WebSocket 请求

This commit is contained in:
ryan
2026-03-15 13:41:53 +08:00
parent 6e1eac2c86
commit b1be887287
5 changed files with 190 additions and 25 deletions
+2 -3
View File
@@ -4,11 +4,10 @@
"private": true,
"packageManager": "pnpm@10.6.2",
"scripts": {
"dev": "next dev",
"dev": "NEXT_DEV_BACKEND_URL=${NEXT_DEV_BACKEND_URL:-http://127.0.0.1:3000} node scripts/dev-server.mjs",
"build": "next build",
"postbuild": "node scripts/prepare-static-export.mjs",
"start": "NEXT_DEV_PROXY=true next dev -p 3001",
"start:prod": "next start",
"start": "next start",
"lint": "eslint . --max-warnings=0",
"typecheck": "tsc --noEmit",
"test": "vitest run",