From 124a88cb2c8c868148ec0738d1caa91a100c5f0d Mon Sep 17 00:00:00 2001 From: Rishi Ghan Date: Sun, 31 Oct 2021 23:36:50 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Debugging=20port=20issues=20with?= =?UTF-8?q?=20Portainer=20deploys?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/client/constants/endpoints.ts | 12 ++++++------ src/client/store/index.ts | 3 +-- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/src/client/constants/endpoints.ts b/src/client/constants/endpoints.ts index e3ff16a..c021c6e 100644 --- a/src/client/constants/endpoints.ts +++ b/src/client/constants/endpoints.ts @@ -36,9 +36,9 @@ export const IMPORT_SERVICE_BASE_URI = hostURIBuilder({ apiPath: "/api/import", }); -// export const SOCKET_BASE_URI = hostURIBuilder({ -// protocol: "http", -// host: process.env.LIBRARY_SOCKET_HOST || "localhost", -// port: "3001", -// apiPath: `/`, -// }); +export const SOCKET_BASE_URI = hostURIBuilder({ + protocol: "http", + host: process.env.LIBRARY_SOCKET_HOST || "localhost", + port: "3001", + apiPath: `/`, +}); diff --git a/src/client/store/index.ts b/src/client/store/index.ts index aa15326..ea4c666 100644 --- a/src/client/store/index.ts +++ b/src/client/store/index.ts @@ -5,8 +5,7 @@ import thunk from "redux-thunk"; import createRootReducer from "../reducers"; import socketIO from "socket.io-client"; import socketIoMiddleware from "redux-socket.io-middleware"; -// import { SOCKET_BASE_URI } from "../constants/endpoints"; -const io = socketIO(`http://localhost:3001`); +import { SOCKET_BASE_URI } from "../constants/endpoints"; export const history = createBrowserHistory(); const configureStore = (initialState) => { const store = createStore(