chore(config): 更新开发服务器代理配置

- 将 API 代理目标端口从 8080 更改为 18080
- 将 WebSocket 代理目标端口从 8080 更改为 18080
- 保持了原有的 changeOrigin 和 ws 配置选项
This commit is contained in:
2026-03-20 17:27:13 +08:00
parent 0fa14ca407
commit fba407c1bf

View File

@@ -6,11 +6,11 @@ export default defineConfig({
server: {
proxy: {
'/api/v1': {
target: 'http://127.0.0.1:8080',
target: 'http://127.0.0.1:18080',
changeOrigin: true,
},
'/api/v1/ws': {
target: 'ws://127.0.0.1:8080',
target: 'ws://127.0.0.1:18080',
ws: true,
}
}