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

export default defineConfig({
  antd: {},
  access: {},
  model: {},
  initialState: {},
  request: {},
  layout: {},
  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: 'https://test-admin.linyikj.com.cn/',
      target: 'https://admin.linyikj.com.cn/',
      changeOrigin: true,
      pathRewrite: { '^': '' },
    },
  },
});
