Skip to content

Commit c0b7ada

Browse files
authored
Merge pull request webdevcody#660 from scape76/socket-connection-url
fix: change socket connection url
2 parents 906c235 + a9aa100 commit c0b7ada

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/app/src/lib/socket.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ import type { ServerToClientEvents } from "@code-racer/wss/src/events/server-to-
44
import type { Socket } from "socket.io-client";
55

66
export const socket: Socket<ServerToClientEvents, ClientToServerEvents> = io(
7-
"http://localhost:3001",
7+
process.env.NEXT_PUBLIC_WSS_URL!,
88
{ transports: ["websocket"] },
99
);

0 commit comments

Comments
 (0)