From 49a7d8c1ddeb252fa0d8a4a54de8c98419780c2e Mon Sep 17 00:00:00 2001 From: Priyam Date: Tue, 13 Aug 2024 21:55:09 +0530 Subject: [PATCH] deployment added --- frontend/src/realtimeCommunication/socketConnection.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/realtimeCommunication/socketConnection.js b/frontend/src/realtimeCommunication/socketConnection.js index cfde2b0..794002a 100644 --- a/frontend/src/realtimeCommunication/socketConnection.js +++ b/frontend/src/realtimeCommunication/socketConnection.js @@ -18,7 +18,7 @@ let socket = null; export const connectWithSocketServer = (userInfo) => { const jwtToken = userInfo.token; const connection_url = - process.env.ENVIRONMENT == "PRODUCTION" + process.env.REACT_APP_ENVIRONMENT == "PRODUCTION" ? process.env.REACT_APP_BACKEND_URL : "http://localhost:4000"; // Update this URL with your server's local network IP