refactor(scripts): 重构开发脚本并添加调试模式

- 修改 "dev" 脚本,移除 NODE_OPTIONS 中的 --inspect 参数
- 新增 "dev:debug" 脚本,用于启动调试模式
This commit is contained in:
Huangzhe
2025-04-27 13:46:53 +08:00
parent 4a1913b076
commit bae008ac65

View File

@@ -6,7 +6,8 @@
"node": ">=18.18.0" "node": ">=18.18.0"
}, },
"scripts": { "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", "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", "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", "lint": "pnpm eslint --cache --cache-location node_modules/.cache/eslint/.eslint-cache",