diff --git a/frontend/src/socket.js b/frontend/src/socket.js index 3be116b..1aa3e89 100644 --- a/frontend/src/socket.js +++ b/frontend/src/socket.js @@ -1,4 +1,4 @@ import { io } from "socket.io-client"; +const SOCKET_URL = import.meta.env.SOCKET_BACKEND_URL; - -export const socket = io("http://localhost:3001") \ No newline at end of file +export const socket = io(SOCKET_URL)