Files
lgp-admin-plus/apps/web-antd/vite.config.ts

23 lines
514 B
TypeScript
Raw Normal View History

import { defineConfig } from '@vben/vite-config';
2024-05-19 21:20:42 +08:00
export default defineConfig(async () => {
return {
application: {},
vite: {
server: {
2026-01-23 17:13:48 +08:00
port: 14002,
proxy: {
'/api': {
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, ''),
// mock代理目标地址
// target: 'http://localhost:5320/api',
2026-08-10 13:58:01 +08:00
target: 'http://127.0.0.1:18006/api/',
ws: true,
},
2024-05-19 21:20:42 +08:00
},
},
},
};
2024-05-19 21:20:42 +08:00
});