Explorar o código

frontendDomain is now accessible when not using localhost

Owen Diffey %!s(int64=5) %!d(string=hai) anos
pai
achega
55b8a00659
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  1. 5 1
      frontend/webpack.dev.js

+ 5 - 1
frontend/webpack.dev.js

@@ -11,6 +11,10 @@ module.exports = merge(common, {
 		contentBase: "./dist/",
 		contentBase: "./dist/",
 		historyApiFallback: true,
 		historyApiFallback: true,
 		hot: true,
 		hot: true,
-		port: config.get("frontendPort")
+		port: config.get("frontendPort"),
+		public: config.get("frontendDomain"),
+		proxy: {
+			"/sockjs-node": "http://localhost:"+config.get("frontendPort")
+		}
 	}
 	}
 });
 });