import { defineConfig } from "umi"; | |
import routes from './routes' | |
export default defineConfig({ | |
outputPath: 'dist', | |
// alias: { '@': './src' }, | |
routes, | |
npmClient: 'npm', | |
base: '/', | |
publicPath: '/client/dist/', | |
icons: { | |
}, | |
hash: true, | |
history: { | |
type: 'hash', | |
}, | |
plugins: ['@umijs/plugins/dist/dva'], | |
dva: {}, | |
proxy: { | |
'/v1': { | |
'target': 'http://54.80.112.79:9380/', | |
'changeOrigin': true, | |
'pathRewrite': { '^/v1': '/v1' }, | |
}, | |
}, | |
}); | |