yumi-admin/apps/vite.config.ts

25 lines
548 B
TypeScript

import { defineConfig } from '@vben/vite-config';
export default defineConfig(async () => {
return {
application: {},
vite: {
server: {
proxy: {
'/console/go': {
changeOrigin: true,
rewrite: (path) => path.replace(/^\/console\/go/, ''),
target: 'http://127.0.0.1:2900',
ws: true,
},
'/console': {
changeOrigin: true,
target: 'http://127.0.0.1:2700',
ws: true,
},
},
},
},
};
});