fix: update Socket.IO connection URL to use specific IP address

This commit is contained in:
2025-09-19 19:35:02 +02:00
parent ff0625ea76
commit 8fbaf158df

View File

@@ -65,7 +65,7 @@ export default function EventPage() {
.then(({ io }) => { .then(({ io }) => {
if (!mounted) return; if (!mounted) return;
const socketPort = process.env.NEXT_PUBLIC_SOCKET_PORT || "4000"; const socketPort = process.env.NEXT_PUBLIC_SOCKET_PORT || "4000";
const socket = io(`http://localhost:${socketPort}`, { const socket = io(`http://10.20.0.188:${socketPort}`, {
autoConnect: true autoConnect: true
}); });
socketRef.current = socket; socketRef.current = socket;