import { defineConfig } from '@umijs/max'; import proxy from './proxy'; import routes from './routes'; const { UMI_ENV } = process.env; export default defineConfig({ hash: true, antd: {}, access: {}, model: {}, initialState: {}, fastRefresh: true, request: { // @ts-ignore dataField: 'data', }, lessLoader: { modifyVars: { 'primary-color': '#FF4144', }, javascriptEnabled: true, }, layout: { locale: false, primaryColor: '#FF4144', title: ' ', }, favicons: ['/favicon.ico'], metas: [ { 'http-equiv': 'X-UA-Compatible', content: 'IE=Edge,chrome=1' }, { 'http-equiv': 'Expires', content: '0' }, { 'http-equiv': 'Pragma', content: 'no-cache' }, { 'http-equiv': 'Cache-control', content: 'no-cache' }, { 'http-equiv': 'Cache', content: 'no-cache' }, ], routes: routes, npmClient: 'yarn', // @ts-ignore proxy: proxy[UMI_ENV || 'dev'], });