fix(web): change port to 3007, add auto port cleanup, graceful error handling

This commit is contained in:
2026-05-07 03:26:22 +08:00
parent 001dbde9f4
commit c257dd2b8c
6 changed files with 46 additions and 3 deletions

View File

@@ -4,6 +4,7 @@
"private": true,
"scripts": {
"dev": "concurrently \"npm run dev:server\" \"npm run dev:client\"",
"predev:server": "npx kill-port 3007",
"dev:server": "tsx watch server/index.ts",
"dev:client": "vite --config client/vite.config.ts",
"build": "vite build --config client/vite.config.ts",
@@ -36,6 +37,7 @@
"@vitejs/plugin-react": "^4.3.0",
"autoprefixer": "^10.4.0",
"concurrently": "^9.1.0",
"kill-port": "^2.0.1",
"postcss": "^8.4.0",
"tailwindcss": "^3.4.0",
"tsx": "^4.19.0",