Release ccsdk/features
[ccsdk/features.git] / sdnr / wt / odlux / apps / mediatorApp / webpack.config.js
index 3efe2d0..f626632 100644 (file)
@@ -86,7 +86,7 @@ module.exports = (env) => {
         manifest: require(path.resolve(frameworkPath, "app-manifest.json")),
         sourceType: "umd2"
       }),
-      ...(env === "release") ? [
+      ...(env === "release" ? [
         new webpack.DefinePlugin({
           "process.env": {
             NODE_ENV: "'production'",
@@ -104,7 +104,7 @@ module.exports = (env) => {
             from: 'index.html',
             to: distPath
           }]),
-        ]
+        ])
     ],
 
     devServer: {
@@ -127,29 +127,19 @@ module.exports = (env) => {
       },
       proxy: {
         "/oauth2/": {
-          target: "http://10.20.6.29:28181",
+          target: "http://localhost:3000",
           secure: false
         },
         "/database/": {
-          target: "http://10.20.6.29:28181",
+          target: "http://localhost:3000",
           secure: false
         },
         "/restconf/": {
-          target: "http://10.20.6.29:28181",
+          target: "http://localhost:3000",
           secure: false
         },
         "/help/": {
-          target: "http://10.20.6.29:28181",
-          secure: false
-        },
-        "/ms/": {
-          target: "http://10.20.6.29:28181",
-          secure: false
-        },
-        "/websocket": {
-          target: "http://10.20.6.29:28181",
-          ws: true,
-          changeOrigin: true,
+          target: "http://localhost:3000",
           secure: false
         }
       }