1
0

Created the socket.js

This commit is contained in:
Mathias Wagner 2023-11-18 19:33:03 +01:00
parent 495d18ae09
commit 3f4e89abb9
Signed by: Mathias
GPG Key ID: B8DC354B0A1F5B44

View File

@ -0,0 +1,5 @@
import { io } from 'socket.io-client';
const URL = process.env.NODE_ENV === "production" ? "https://pmg-api.gnmyt.dev" : "http://localhost:3000";
export const socket = io(URL);