Fix API base URL

This commit is contained in:
2025-08-25 19:30:57 +03:00
Unverified
parent 8e65990139
commit b7874ebad7
+1 -1
View File
@@ -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