From db0a1e4a26d4e1ac5a758faee8b46c8af5f229e9 Mon Sep 17 00:00:00 2001 From: bacpactech Date: Wed, 25 Sep 2024 16:12:26 +0530 Subject: [PATCH] fix: env fixed --- src/store/socketSlice/socketSlice.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store/socketSlice/socketSlice.ts b/src/store/socketSlice/socketSlice.ts index 9ec7f777..34ec0d72 100644 --- a/src/store/socketSlice/socketSlice.ts +++ b/src/store/socketSlice/socketSlice.ts @@ -32,7 +32,7 @@ export const createSocketSlice: StateCreator = (set, get) => ({ ...initialState, initializeSocket: (userId, refetchUserData, refetchNotification, refetchUserProfileData) => { - const newSocket = io('http://localhost:8000') + const newSocket = io(process.env.NEXT_PUBLIC_API_BASE_URL as string) newSocket.on('connect', () => { console.log('Connected to the server')