2024-08-28 14:28:57 +08:00
|
|
|
import { defineApplicationConfig } from '@vben/vite-config';
|
|
|
|
|
|
|
|
|
|
export default defineApplicationConfig({
|
2024-12-19 21:57:03 +08:00
|
|
|
overrides: {
|
|
|
|
|
optimizeDeps: {
|
|
|
|
|
include: [
|
|
|
|
|
'echarts/core',
|
|
|
|
|
'echarts/charts',
|
|
|
|
|
'echarts/components',
|
|
|
|
|
'echarts/renderers',
|
|
|
|
|
'qrcode',
|
|
|
|
|
'@iconify/iconify',
|
|
|
|
|
'ant-design-vue/es/locale/zh_CN',
|
|
|
|
|
'ant-design-vue/es/locale/en_US',
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
server: {
|
|
|
|
|
port: 3000,
|
|
|
|
|
proxy: {
|
|
|
|
|
'/erp-api': {
|
|
|
|
|
target: 'http://58.49.150.163:8088',
|
|
|
|
|
// target: 'https://eairp.cn',
|
|
|
|
|
|
|
|
|
|
changeOrigin: true,
|
|
|
|
|
ws: true,
|
|
|
|
|
// rewrite: (path) => path.replace(/^\/api/, ''),
|
|
|
|
|
// only https
|
2024-08-28 14:28:57 +08:00
|
|
|
|
2024-12-19 21:57:03 +08:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
2024-08-28 14:28:57 +08:00
|
|
|
},
|
|
|
|
|
});
|