Browse Source

frontendDomain is now accessible when not using localhost

Owen Diffey 5 năm trước cách đây
mục cha
commit
55b8a00659
1 tập tin đã thay đổi với 5 bổ sung1 xóa
  1. 5 1
      frontend/webpack.dev.js

+ 5 - 1
frontend/webpack.dev.js

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