From b7874ebad784cd9047b3a57a314881bc63121989 Mon Sep 17 00:00:00 2001 From: denis0001-dev Date: Mon, 25 Aug 2025 19:30:57 +0300 Subject: [PATCH] Fix API base URL --- frontend/src/core/config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/core/config.ts b/frontend/src/core/config.ts index 9070347..79ed496 100644 --- a/frontend/src/core/config.ts +++ b/frontend/src/core/config.ts @@ -9,7 +9,7 @@ * Base API endpoint for all backend requests * @constant */ -export const API_BASE_URL = `${location.host || "https://fromchat.toolbox-io.ru"}/api`; +export const API_BASE_URL = `${location.host ? "" : "https://fromchat.toolbox-io.ru"}/api`; /** * Full API URL including hostname and port for WebSocket connections