summaryrefslogtreecommitdiffstats
path: root/catalog-ui/webpack.server.js
diff options
context:
space:
mode:
Diffstat (limited to 'catalog-ui/webpack.server.js')
-rw-r--r--catalog-ui/webpack.server.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/catalog-ui/webpack.server.js b/catalog-ui/webpack.server.js
index f55be99715..06ac28d5cb 100644
--- a/catalog-ui/webpack.server.js
+++ b/catalog-ui/webpack.server.js
@@ -40,7 +40,7 @@ module.exports = function(env) {
// Redirect all '/sdc1/feProxy/rest' to feHost
middlewares.push(
proxy(['/sdc1/feProxy/rest'],{
- target: 'http://localhost:' + fePort,
+ target: 'http://' + loclahost + ':' + fePort,
changeOrigin: true,
secure: false
}));
@@ -48,7 +48,7 @@ module.exports = function(env) {
// Redirect all '/sdc1/rest' to feHost
middlewares.push(
proxy(['/sdc1/rest'],{
- target: 'http://localhost:' + fePort,
+ target: 'http://' + loclahost + ':' + fePort,
changeOrigin: true,
secure: false
}));
@@ -56,7 +56,7 @@ module.exports = function(env) {
// Redirect dcae urls to feHost
middlewares.push(
proxy(['/dcae','/sdc1/feProxy/dcae-api'],{
- target: 'http://localhost:' + fePort,
+ target: 'http://' + loclahost + ':' + fePort,
changeOrigin: true,
secure: false,
onProxyRes: (proxyRes, req, res) => {
@@ -70,7 +70,7 @@ module.exports = function(env) {
// Redirect onboarding urls to feHost
middlewares.push(
proxy(['/onboarding','/sdc1/feProxy/onboarding-api'],{
- target: 'http://localhost:' + fePort,
+ target: 'http://' + loclahost + ':' + fePort,
changeOrigin: true,
secure: false,
onProxyRes: (proxyRes, req, res) => {