diff --git a/client/src/common/utils/SocketUtil.js b/client/src/common/utils/SocketUtil.js index b9aa2e2..7d15403 100644 --- a/client/src/common/utils/SocketUtil.js +++ b/client/src/common/utils/SocketUtil.js @@ -1,6 +1,7 @@ import { io } from 'socket.io-client'; -const URL = process.env.NODE_ENV === 'production' ? "https://tools-api.gnmyt.dev/" : "http://localhost:7182/"; +const URL = process.env.NODE_ENV === 'production' ? (localStorage.getItem("url") || "https://tools-api.gnmyt.dev/") + : "http://localhost:7182/"; export const createConnection = (type) => { const socket = io(URL, {autoConnect: false});