mirror of
https://gitee.com/qqtt-ah/ai-crm.git
synced 2026-11-24 13:49:20 +08:00
feat: 调整本地开发端口为前端 5888、后端 8070
This commit is contained in:
Vendored
+1
-1
@@ -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
@@ -19,7 +19,7 @@ pnpm install
|
||||
pnpm dev
|
||||
```
|
||||
|
||||
访问:http://localhost:5666
|
||||
访问:http://localhost:5888
|
||||
|
||||
## 构建生产版本
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# 端口号
|
||||
VITE_PORT=5666
|
||||
VITE_PORT=5888
|
||||
|
||||
VITE_BASE=/
|
||||
|
||||
|
||||
@@ -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,
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user