Skip to content

Commit 249fcb7

Browse files
committed
Fixed WS Server instantiation for SERVER variable with .env variables
1 parent b6e488f commit 249fcb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/socket/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { io } from "socket.io-client";
22
import 'dotenv/config'
33

4-
const SERVER = `ws://${process.env.PROD_SERVER_IP}/ws/`; // LATER: remove and add as env variable
4+
const SERVER = process.env.NEXT_PUBLIC_WS_SERVER;
55

66
export function socketIO(sid : string, isHost : boolean) {
77
return io(SERVER, {

0 commit comments

Comments
 (0)