Fix catalog-ui dev proxy calls to uicache 59/106359/2
authorandre.schmid <andre.schmid@est.tech>
Tue, 21 Apr 2020 13:13:17 +0000 (14:13 +0100)
committerOfir Sonsino <ofir.sonsino@intl.att.com>
Tue, 21 Apr 2020 16:55:17 +0000 (16:55 +0000)
Fixes webpack dev server proxy to uicache removed in
SDC-2843, Change Id: I9a6c89e45ea425eb9abf827906562e14a39cf1ff.

Change-Id: I83aa842df4c7bf3d140216c93b48eb1cfec48656
Issue-ID: SDC-2944
Signed-off-by: andre.schmid <andre.schmid@est.tech>
catalog-ui/webpack.server.js

index ab86785..a3db60f 100644 (file)
@@ -56,6 +56,14 @@ module.exports = function (env) {
             middlewares.push(
                 proxy(['/sdc1/feProxy/rest'], feProxyOptions));
 
+            // Redirect all '/sdc1/feProxy/uicache' to feHost
+            middlewares.push(
+              proxy(['/sdc1/feProxy/uicache'], {
+                target: protocol + '://' + feHost + ':' + fePort,
+                changeOrigin: true,
+                secure: false
+              }));
+
             // Redirect all '/sdc1/rest' to feHost
             middlewares.push(
                 proxy(['/sdc1/rest'],{