admin / apps /web-ele /vite.config.mts
hanbinsite's picture
chore: HuggingFace deploy 2026-05-19 10:37
dc649b1
Raw History Blame Contribute Delete
544 Bytes
import { defineConfig } from '@vben/vite-config';
import ElementPlus from 'unplugin-element-plus/vite';
export default defineConfig(async () => {
return {
application: {},
vite: {
plugins: [
ElementPlus({
format: 'esm',
}),
],
server: {
proxy: {
'/api': {
changeOrigin: true,
rewrite: (path: string) => path.replace(/^\/api/, ''),
target: 'http://localhost:9999',
ws: true,
},
},
},
},
};
});