From 021380b6f3ec8f5bf17db341dafad4688b6a4bac Mon Sep 17 00:00:00 2001 From: anovazzi1 Date: Tue, 15 Aug 2023 15:40:50 -0300 Subject: [PATCH] format code --- src/frontend/src/modals/formModal/index.tsx | 3 ++- src/frontend/vite.config.ts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/frontend/src/modals/formModal/index.tsx b/src/frontend/src/modals/formModal/index.tsx index 68137c0da..0e2f9b3c4 100644 --- a/src/frontend/src/modals/formModal/index.tsx +++ b/src/frontend/src/modals/formModal/index.tsx @@ -160,7 +160,8 @@ export default function FormModal({ } function getWebSocketUrl(chatId, isDevelopment = false) { - const isSecureProtocol = window.location.protocol === "https:" || window.location.port === "443"; + const isSecureProtocol = + window.location.protocol === "https:" || window.location.port === "443"; const webSocketProtocol = isSecureProtocol ? "wss" : "ws"; const host = isDevelopment ? "localhost:7860" : window.location.host; const chatEndpoint = `/api/v1/chat/${chatId}`; diff --git a/src/frontend/vite.config.ts b/src/frontend/vite.config.ts index d477ce539..b513e36bb 100644 --- a/src/frontend/vite.config.ts +++ b/src/frontend/vite.config.ts @@ -6,7 +6,7 @@ const apiRoutes = ["^/api/v1/", "/health"]; // Use environment variable to determine the target. const target = process.env.VITE_PROXY_TARGET || "http://127.0.0.1:7860"; -// Use environment variable to determine the UI server port +// Use environment variable to determine the UI server port const port = process.env.VITE_PORT || 3000; const proxyTargets = apiRoutes.reduce((proxyObj, route) => {