1
0

client/src/common/utils/socket.js aktualisiert
Some checks failed
Publish Docker image / Push Docker image to Docker Hub (push) Has been cancelled

This commit is contained in:
Mathias 2025-02-03 10:47:30 +00:00
parent 5131f60cc8
commit f5d2043cb3

View File

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