feat: 调整本地开发端口为前端 5888、后端 8070

This commit is contained in:
2026-10-22 09:42:35 +08:00
parent 7685f280c6
commit d7156c1ebb
9 changed files with 15 additions and 15 deletions
+1 -1
View File
@@ -15,7 +15,7 @@
"type": "chrome",
"name": "vben admin antd dev",
"request": "launch",
"url": "http://localhost:5666",
"url": "http://localhost:5888",
"env": { "NODE_ENV": "development" },
"sourceMaps": true,
"webRoot": "${workspaceFolder}/apps/web-antd"
+1 -1
View File
@@ -19,7 +19,7 @@ pnpm install
pnpm dev
```
访问:http://localhost:5666
访问:http://localhost:5888
## 构建生产版本
+1 -1
View File
@@ -1,5 +1,5 @@
# 端口号
VITE_PORT=5666
VITE_PORT=5888
VITE_BASE=/
+2 -2
View File
@@ -52,7 +52,7 @@ export default defineConfig(async () => {
'/api': {
changeOrigin: true,
// 后端服务地址
target: 'http://localhost:8080',
target: 'http://localhost:8070',
ws: true,
// SSE 长连接:禁止代理空闲超时断开
timeout: 0,
@@ -62,7 +62,7 @@ export default defineConfig(async () => {
// 静态资源代理 - 用于访问上传的图片和文件
'/uploads': {
changeOrigin: true,
target: 'http://localhost:8080',
target: 'http://localhost:8070',
ws: false,
},
},