From 8b295542f80783c453cc9d8a2aaa080b8086f162 Mon Sep 17 00:00:00 2001 From: nsxshota Date: Thu, 23 Nov 2023 09:54:41 +0900 Subject: [PATCH] set window.host and alembic.ini --- src/backend/langflow/alembic.ini | 2 +- src/frontend/src/modals/formModal/index.tsx | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/backend/langflow/alembic.ini b/src/backend/langflow/alembic.ini index 379661422..cba482993 100644 --- a/src/backend/langflow/alembic.ini +++ b/src/backend/langflow/alembic.ini @@ -63,7 +63,7 @@ version_path_separator = os # Use os.pathsep. Default configuration used for ne # This is the path to the db in the root of the project. # When the user runs the Langflow the database url will # be set dinamically. -sqlalchemy.url = sqlite:///../../../langflow.db +# sqlalchemy.url = sqlite:///../../../langflow.db [post_write_hooks] diff --git a/src/frontend/src/modals/formModal/index.tsx b/src/frontend/src/modals/formModal/index.tsx index f6f7c214f..6c8a733ef 100644 --- a/src/frontend/src/modals/formModal/index.tsx +++ b/src/frontend/src/modals/formModal/index.tsx @@ -197,7 +197,8 @@ export default function FormModal({ const isSecureProtocol = window.location.protocol === "https:" || window.location.port === "443"; 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}`; return `${