Implement custom API base URL for Electron builds

This commit is contained in:
2025-09-21 14:17:40 +03:00
Unverified
parent a580b87e1c
commit 2f30399607
2 changed files with 13 additions and 1 deletions
+1 -1
View File
@@ -9,7 +9,7 @@
* Base domain name for all requests in production
* @constant
*/
export const BASE_DOMAIN = "fromchat.ru";
export const BASE_DOMAIN = import.meta.env.VITE_API_BASE_URL ?? "fromchat.ru";
/**
* Base API endpoint for all backend requests