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: 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

                }
            },
        },
    },
});
