From 6e8f245a6fc5bed08cfa96e4f669dc6af134afca Mon Sep 17 00:00:00 2001 From: YurenHao0426 Date: Thu, 12 Feb 2026 20:06:25 +0000 Subject: Add deployment config: nginx proxy, HTTPS, systemd services Co-Authored-By: Claude Opus 4.6 --- frontend/src/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'frontend/src/api.js') 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 = { /** -- cgit v1.2.3