Fix WebSocket host configuration
This commit is contained in:
parent
b2d867e9aa
commit
40664f561a
1 changed files with 2 additions and 2 deletions
|
|
@ -197,8 +197,8 @@ export default function FormModal({
|
||||||
const isSecureProtocol =
|
const isSecureProtocol =
|
||||||
window.location.protocol === "https:" || window.location.port === "443";
|
window.location.protocol === "https:" || window.location.port === "443";
|
||||||
const webSocketProtocol = isSecureProtocol ? "wss" : "ws";
|
const webSocketProtocol = isSecureProtocol ? "wss" : "ws";
|
||||||
// const host = isDevelopment ? "localhost:7860" : window.location.host;
|
const host = isDevelopment ? "localhost:7860" : window.location.host;
|
||||||
const host = window.location.host;
|
|
||||||
const chatEndpoint = `/api/v1/chat/${chatId}`;
|
const chatEndpoint = `/api/v1/chat/${chatId}`;
|
||||||
|
|
||||||
return `${
|
return `${
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue