aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorandre.schmid <andre.schmid@est.tech>2020-04-21 14:13:17 +0100
committerOfir Sonsino <ofir.sonsino@intl.att.com>2020-04-21 16:55:17 +0000
commit161b1a27cb2205d4b8e37b332a59ad5a417c0a1f (patch)
treea60f3a17977fd8551bc6658222c680ed19c939e9
parentac26dc0d5c5f7fce65e214c31e26e7178e492d5b (diff)
Fix catalog-ui dev proxy calls to uicache
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>
-rw-r--r--catalog-ui/webpack.server.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/catalog-ui/webpack.server.js b/catalog-ui/webpack.server.js
index ab8678536c..a3db60f636 100644
--- a/catalog-ui/webpack.server.js
+++ b/catalog-ui/webpack.server.js
@@ -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'],{