Files
tyass-admin/apps/web-antd/vite.config.mts
2026-02-27 12:29:13 +08:00

24 lines
609 B
TypeScript

import { defineConfig } from '@vben/vite-config';
export default defineConfig(async () => {
return {
application: {},
vite: {
server: {
proxy: {
'/api': {
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, ''),
// mock代理目标地址
target: 'http://localhost:8888/api',
// target: 'https://ass.tianyuandata.com/api',
// target: 'https://www.zhinengcha.cn/api',
// target: 'https://www.quannengcha./api',
ws: true,
},
},
},
},
};
});