配置 dev 服务代理

This commit is contained in:
sin 2019-03-01 14:59:36 +08:00
parent d9d2fc39ee
commit 46f4b220c9
1 changed files with 12 additions and 7 deletions

View File

@ -79,13 +79,18 @@ export default {
'@antv/data-set': 'DataSet',
bizcharts: 'BizCharts',
},
// proxy: {
// '/server/api/': {
// target: 'https://preview.pro.ant.design/',
// changeOrigin: true,
// pathRewrite: { '^/server': '' },
// },
// },
proxy: {
'/admin-api/': {
target: 'http://180.167.213.26:18083/',
changeOrigin: true,
pathRewrite: { '^/admin-api': '' },
},
'/server/api/': {
target: 'https://preview.pro.ant.design/',
changeOrigin: true,
pathRewrite: { '^/server': '' },
},
},
ignoreMomentLocale: true,
lessLoaderOptions: {
javascriptEnabled: true,