summaryrefslogtreecommitdiff
path: root/frontend/src/api.js
diff options
context:
space:
mode:
authorYurenHao0426 <blackhao0426@gmail.com>2026-02-12 20:06:25 +0000
committerYurenHao0426 <blackhao0426@gmail.com>2026-02-12 20:06:25 +0000
commit6e8f245a6fc5bed08cfa96e4f669dc6af134afca (patch)
tree388bf2a3d6fc4ab70d0238466231b7640cb65304 /frontend/src/api.js
parent924a82ac26dc9938b692f15db7aa06dd66b021bd (diff)
Add deployment config: nginx proxy, HTTPS, systemd servicesHEADmaster
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Diffstat (limited to 'frontend/src/api.js')
-rw-r--r--frontend/src/api.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/frontend/src/api.js b/frontend/src/api.js
index a53ed90..dfe9dff 100644
--- a/frontend/src/api.js
+++ b/frontend/src/api.js
@@ -2,7 +2,7 @@
* API client for the LLM Council backend.
*/
-const API_BASE = 'http://localhost:8001';
+const API_BASE = window.location.hostname === 'localhost' ? 'http://localhost:8001' : '';
export const api = {
/**