import { defineConfig } from '@umijs/max';

export default defineConfig({
  antd: {},
  access: {},
  model: {},
  initialState: {},
  request: {},
  layout: {},
  //ai 加的 mfsu
  mfsu: false,
  favicons: ['/favicon.ico'],
  npmClient: 'npm',
  define: {
    'process.env.TOKEN_NAME': process.env.TOKEN_NAME,
    'process.env.GUARD_NAME': process.env.GUARD_NAME,
  },
  proxy: {
    '/api/': {
      target: 'http://10.39.13.78:8002/',
      // target: 'http://test-company.linyikj.com.cn/',
      // target: 'https://company.linyikj.com.cn/',
      changeOrigin: true,
      pathRewrite: { '^': '' },
    },
  },
});
