Fix socket connection URL path handling

deploy_exxeta
EC2 Default User 2025-06-29 21:43:13 +00:00
parent 4c3325b0ef
commit 7534eaa2e4
1 changed files with 1 additions and 1 deletions

View File

@ -4,6 +4,6 @@ import { API_HOST } from "./util/api";
// "undefined" means the URL will be computed from the `window.location` object // "undefined" means the URL will be computed from the `window.location` object
// const URL = process.env.NODE_ENV === 'production' ? undefined : 'http://localhost:4000'; // 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`, path: `/ff-api/socket.io`,
}); });