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

@@ -13,9 +13,9 @@ export default defineConfig({
server: {
port: 5173,
proxy: {
'/api': 'http://localhost:3001',
'/api': 'http://localhost:3007',
'/ws': {
target: 'ws://localhost:3001',
target: 'ws://localhost:3007',
ws: true,
},
},