Skip to content

Commit

Permalink
chore: add env to WEBSOCKET_URL
Browse files Browse the repository at this point in the history
  • Loading branch information
brunocroh committed May 14, 2024
1 parent 56caa64 commit eac8088
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/web/lib/socket/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { io, Socket } from "socket.io-client";

const URL = "http://localhost:4000";
const URL = process.env.NEXT_PUBLIC_SOCKET_URL;

export const socket = (): Socket => {
return io(URL);
Expand Down

0 comments on commit eac8088

Please sign in to comment.