Fix socket connection URL path handling
parent
4c3325b0ef
commit
7534eaa2e4
|
|
@ -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`,
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue