[CORD-774] Added proxy to load GUI extensions in dev env
Change-Id: I9e64179cb8468c887bfc39483ee7be1650eb63cc
diff --git a/conf/browsersync-dist.conf.js b/conf/browsersync-dist.conf.js
index d80f1ef..dd768bb 100644
--- a/conf/browsersync-dist.conf.js
+++ b/conf/browsersync-dist.conf.js
@@ -1,5 +1,6 @@
const conf = require('./gulp.conf');
-const proxy = require('./proxy');
+const proxy = require('./proxy').proxy;
+const extensionsProxy = require('./proxy').extensionsProxy;
module.exports = function () {
return {
@@ -11,6 +12,9 @@
if (req.url.indexOf('xosapi') !== -1) {
proxy.web(req, res);
}
+ else if (req.url.indexOf('extensions') !== -1) {
+ extensionsProxy.web(req, res);
+ }
else{
next();
}