import { defineConfig } from '@vben/vite-config'; import ElementPlus from 'unplugin-element-plus/vite'; import { createLogger } from 'vite'; const viteLogger = createLogger(); export default defineConfig(async () => { return { application: {}, vite: { customLogger: viteLogger, plugins: [ ElementPlus({ format: 'esm', }), ], server: { proxy: { '/basic-api': { changeOrigin: true, rewrite: (path) => path.replace(/^\/basic-api/, ''), target: 'http://localhost:8000', ws: true, }, '/ws': { changeOrigin: true, target: 'ws://localhost:8000', ws: true, }, }, }, }, }; });