import { defineApplicationConfig } from '@vben/vite-config'; export default defineApplicationConfig({ overrides: { optimizeDeps: { include: [ 'echarts/core', 'echarts/charts', 'echarts/components', 'echarts/renderers', '@iconify/iconify', 'ant-design-vue/es/locale/zh_CN', 'ant-design-vue/es/locale/en_US', ], }, server: { proxy: { "/api":{ target: 'http://wechat-api:19101', changeOrigin: true, ws: true, rewrite: (path) => path.replace(new RegExp(`^/api`), ''), }, '/sys-api': { target: 'http://core-api:9100', changeOrigin: true, ws: true, rewrite: (path) => path.replace(new RegExp(`^/sys-api`), ''), // only https // secure: false }, '/fms-api': { target: 'http://fms-api:9102', changeOrigin: true, ws: true, rewrite: (path) => path.replace(new RegExp(`^/fms-api`), ''), }, '/mms-api': { target: 'http://mcms-rpc:9104', changeOrigin: true, ws: true, rewrite: (path) => path.replace(new RegExp(`^/mms-api`), ''), }, '/wechat-api': { target: 'http://wechat-api:19101', changeOrigin: true, ws: true, rewrite: (path) => path.replace(new RegExp(`^/wechat-api`), ''), }, }, warmup: { clientFiles: ['./index.html', './src/{views,components}/*'], }, }, }, });