We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6e488f commit 249fcb7Copy full SHA for 249fcb7
src/socket/client.ts
@@ -1,7 +1,7 @@
1
import { io } from "socket.io-client";
2
import 'dotenv/config'
3
4
-const SERVER = `ws://${process.env.PROD_SERVER_IP}/ws/`; // LATER: remove and add as env variable
+const SERVER = process.env.NEXT_PUBLIC_WS_SERVER;
5
6
export function socketIO(sid : string, isHost : boolean) {
7
return io(SERVER, {
0 commit comments