chore(config): 更新开发服务器代理配置
- 将 API 代理目标端口从 8080 更改为 18080 - 将 WebSocket 代理目标端口从 8080 更改为 18080 - 保持了原有的 changeOrigin 和 ws 配置选项
This commit is contained in:
@@ -6,11 +6,11 @@ export default defineConfig({
|
|||||||
server: {
|
server: {
|
||||||
proxy: {
|
proxy: {
|
||||||
'/api/v1': {
|
'/api/v1': {
|
||||||
target: 'http://127.0.0.1:8080',
|
target: 'http://127.0.0.1:18080',
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
},
|
},
|
||||||
'/api/v1/ws': {
|
'/api/v1/ws': {
|
||||||
target: 'ws://127.0.0.1:8080',
|
target: 'ws://127.0.0.1:18080',
|
||||||
ws: true,
|
ws: true,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user