From bae008ac65ec7df1fdb550f41ddb89c327fbbfb4 Mon Sep 17 00:00:00 2001 From: Huangzhe Date: Sun, 27 Apr 2025 13:46:53 +0800 Subject: [PATCH] =?UTF-8?q?refactor(scripts):=20=E9=87=8D=E6=9E=84?= =?UTF-8?q?=E5=BC=80=E5=8F=91=E8=84=9A=E6=9C=AC=E5=B9=B6=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E8=B0=83=E8=AF=95=E6=A8=A1=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修改 "dev" 脚本,移除 NODE_OPTIONS 中的 --inspect 参数 - 新增 "dev:debug" 脚本,用于启动调试模式 --- web/package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/package.json b/web/package.json index a1f161cd7..1677a07bc 100644 --- a/web/package.json +++ b/web/package.json @@ -6,7 +6,8 @@ "node": ">=18.18.0" }, "scripts": { - "dev": "cross-env NODE_OPTIONS='--inspect' next dev", + "dev": "cross-env next dev", + "dev:debug": "cross-env NODE_OPTIONS='--inspect' next dev", "build": "next build", "start": "cp -r .next/static .next/standalone/.next/static && cp -r public .next/standalone/public && cross-env PORT=$npm_config_port HOSTNAME=$npm_config_host node .next/standalone/server.js", "lint": "pnpm eslint --cache --cache-location node_modules/.cache/eslint/.eslint-cache",