配置 dev 服务代理
This commit is contained in:
parent
d9d2fc39ee
commit
46f4b220c9
@ -79,13 +79,18 @@ export default {
|
|||||||
'@antv/data-set': 'DataSet',
|
'@antv/data-set': 'DataSet',
|
||||||
bizcharts: 'BizCharts',
|
bizcharts: 'BizCharts',
|
||||||
},
|
},
|
||||||
// proxy: {
|
proxy: {
|
||||||
// '/server/api/': {
|
'/admin-api/': {
|
||||||
// target: 'https://preview.pro.ant.design/',
|
target: 'http://180.167.213.26:18083/',
|
||||||
// changeOrigin: true,
|
changeOrigin: true,
|
||||||
// pathRewrite: { '^/server': '' },
|
pathRewrite: { '^/admin-api': '' },
|
||||||
// },
|
},
|
||||||
// },
|
'/server/api/': {
|
||||||
|
target: 'https://preview.pro.ant.design/',
|
||||||
|
changeOrigin: true,
|
||||||
|
pathRewrite: { '^/server': '' },
|
||||||
|
},
|
||||||
|
},
|
||||||
ignoreMomentLocale: true,
|
ignoreMomentLocale: true,
|
||||||
lessLoaderOptions: {
|
lessLoaderOptions: {
|
||||||
javascriptEnabled: true,
|
javascriptEnabled: true,
|
||||||
|
Loading…
Reference in New Issue
Block a user