import { defineApplicationConfig } from '@vben/vite-config'; export default defineApplicationConfig({ 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: 3100,//端口号 host: true,//ip地址 或 '0.0.0.0' 或 "loaclhost" open: false, //启动后是否自动打开浏览器 https: false, // 是否开启 https hmr: true, proxy: { '/guoyan': { target: 'http://localhost:8080/', changeOrigin: true, ws: true, rewrite: (path) => path.replace(new RegExp(`^/guoyan`), ''), // only https // secure: false }, '/upload': { target: 'http://localhost:3300/upload', changeOrigin: true, ws: true, rewrite: (path) => path.replace(new RegExp(`^/upload`), ''), }, }, }, }, });