Files
TakeoutSaaS.TenantUI/apps/web-ele/vite.config.mts
2026-01-29 04:21:46 +00:00

26 lines
540 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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,
// 本地联调:后端地址(保持 /api 前缀,不做 rewrite
target: 'http://127.0.0.1:7801',
},
},
},
},
};
});