From 7534eaa2e45cecd0003deeeace2459388bd3e468 Mon Sep 17 00:00:00 2001 From: EC2 Default User Date: Sun, 29 Jun 2025 21:43:13 +0000 Subject: [PATCH] Fix socket connection URL path handling --- project/frontend/src/socket.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/frontend/src/socket.ts b/project/frontend/src/socket.ts index 9661f66..4b57785 100644 --- a/project/frontend/src/socket.ts +++ b/project/frontend/src/socket.ts @@ -4,6 +4,6 @@ import { API_HOST } from "./util/api"; // "undefined" means the URL will be computed from the `window.location` object // const URL = process.env.NODE_ENV === 'production' ? undefined : 'http://localhost:4000'; -export const socket = io(`${API_HOST}`, { +export const socket = io(`${API_HOST}`.replace("/ff-api", ""), { path: `/ff-api/socket.io`, });