diff --git a/concord-client/src/socket.ts b/concord-client/src/socket.ts new file mode 100644 index 0000000..693e007 --- /dev/null +++ b/concord-client/src/socket.ts @@ -0,0 +1,5 @@ +import { io } from "socket.io-client"; + +const URL = import.meta.env.PROD === true ? undefined : "http://localhost:5173"; + +export const socket = io(URL);