diff --git a/admin-web/config/proxy/proxy.dev.js b/admin-web/config/proxy/proxy.dev.js index 9e6a576cf..bb5b0c986 100644 --- a/admin-web/config/proxy/proxy.dev.js +++ b/admin-web/config/proxy/proxy.dev.js @@ -15,7 +15,7 @@ export default { }, '/order-api/': { // target: 'http://180.167.213.26:18084/', - target: 'http://127.0.0.1:18084/', + target: 'http://127.0.0.1:18088/', changeOrigin: true, pathRewrite: {}, }, diff --git a/admin-web/config/proxy/proxy.prod.js b/admin-web/config/proxy/proxy.prod.js index 968def624..f8cef2eee 100644 --- a/admin-web/config/proxy/proxy.prod.js +++ b/admin-web/config/proxy/proxy.prod.js @@ -2,11 +2,24 @@ export default { '/admin-api/': { - target: 'http://180.167.213.26:18083/', + target: 'http://api.shop.iocoder.cn:18099/admin-api', changeOrigin: true, - pathRewrite: { - '^/admin-api': `/admin-web/admin-api`, - }, + pathRewrite: {}, + }, + '/order-api/': { + target: 'http://api.shop.iocoder.cn:18099/order-api', + changeOrigin: true, + pathRewrite: {}, + }, + '/pay-api/': { + target: 'http://api.shop.iocoder.cn:18099/pay-api', + changeOrigin: true, + pathRewrite: {}, + }, + '/user-api/': { + target: 'http://api.shop.iocoder.cn:18099/user-api', + changeOrigin: true, + pathRewrite: {}, }, '/server/api/': { target: 'https://preview.pro.ant.design/',