Fixed UI webpack settings 87/39487/2
authorIdan Amit <ia096e@intl.att.com>
Wed, 28 Mar 2018 07:37:14 +0000 (10:37 +0300)
committerMichael Lando <ml636r@att.com>
Thu, 29 Mar 2018 06:24:41 +0000 (06:24 +0000)
Fixed an issue with deploying local environment for non OS code base

Change-Id: I94536251f4688b559e7e74b83815d9d3d1424bfc
Issue-ID: SDC-1082
Signed-off-by: Idan Amit <ia096e@intl.att.com>
catalog-ui/webpack.server.js

index f55be99..06ac28d 100644 (file)
@@ -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) => {