From 56449b3ef6bdf97c32f02507896a00a36a21edb7 Mon Sep 17 00:00:00 2001 From: Rishi Ghan Date: Wed, 27 Oct 2021 19:02:57 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Used=20the=20right=20constant=20?= =?UTF-8?q?for=20socket=20URI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/client/store/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/store/index.ts b/src/client/store/index.ts index 47db5ec..c63becd 100644 --- a/src/client/store/index.ts +++ b/src/client/store/index.ts @@ -5,8 +5,8 @@ import thunk from "redux-thunk"; import createRootReducer from "../reducers"; import socketIO from "socket.io-client"; import socketIoMiddleware from "redux-socket.io-middleware"; -const socketHostURI = `${process.env.HOSTNAME}:3001` || `http://localhost:3001`; -const io = socketIO(socketHostURI); +import { SOCKET_BASE_URI } from "../constants/endpoints"; +const io = socketIO(SOCKET_BASE_URI); export const history = createBrowserHistory(); const configureStore = (initialState) => { const store = createStore(