From 480fe8cf5bf702dc26119b80755251c6d667ee5a Mon Sep 17 00:00:00 2001 From: Abdul Qoyyuum Date: Mon, 8 Jan 2018 15:00:58 +0800 Subject: [PATCH] TODO Get Port Dynamically --- packages/react-server-test-pages/middleware/RequestToPort.js | 1 - packages/react-server-website/middleware/RequestToPort.js | 1 - 2 files changed, 2 deletions(-) diff --git a/packages/react-server-test-pages/middleware/RequestToPort.js b/packages/react-server-test-pages/middleware/RequestToPort.js index 8a7489837..0ed2bb988 100644 --- a/packages/react-server-test-pages/middleware/RequestToPort.js +++ b/packages/react-server-test-pages/middleware/RequestToPort.js @@ -3,7 +3,6 @@ export default class RequestToPortMiddleware { handleRoute(next){ if (typeof window === "undefined"){ ReactServerAgent.plugRequest(req => { - // TODO: Get port dynamically? req.urlPrefix('localhost:3000'); }); } diff --git a/packages/react-server-website/middleware/RequestToPort.js b/packages/react-server-website/middleware/RequestToPort.js index 6520d7059..211a9937b 100644 --- a/packages/react-server-website/middleware/RequestToPort.js +++ b/packages/react-server-website/middleware/RequestToPort.js @@ -3,7 +3,6 @@ export default class RequestToPortMiddleware { handleRoute(next){ if (typeof window === "undefined"){ ReactServerAgent.plugRequest(req => { - // TODO: Get port dynamically? req.urlPrefix('localhost:3010'); }); }