소스 검색

frontendDomain is now accessible when not using localhost

Owen Diffey 5 년 전
부모
커밋
55b8a00659
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  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")
+		}
 	}
 });