配置 dev 服务代理
This commit is contained in:
parent
d9d2fc39ee
commit
46f4b220c9
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue