Files
dax-pay-ui/apps/daxpay-admin/vite.config.ts

21 lines
418 B
TypeScript

import { defineConfig } from '@vben/vite-config';
export default defineConfig(async () => {
return {
application: {},
vite: {
server: {
open: false,
proxy: {
'/api': {
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, ''),
target: 'http://localhost:9999',
ws: true,
},
},
},
},
};
});