From ae7be9ca8dc4fbbaf7a691edb74041f80d31ea42 Mon Sep 17 00:00:00 2001 From: Tanvir Ahamed Date: Wed, 18 Jun 2025 00:13:05 +0600 Subject: [PATCH] Fix: REACT_APP_BACKEND_URL environment variable issue in frontend in Updated UI. Revised the BACKEND_URL constant to ensure the application prioritizes fetching the backend URL from the environment variable REACT_APP_BACKEND_URL before defaulting to `http://localhost:7777`. --- frontend/agentic-seek-front/src/App.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/agentic-seek-front/src/App.js b/frontend/agentic-seek-front/src/App.js index e5690c4..6222e11 100644 --- a/frontend/agentic-seek-front/src/App.js +++ b/frontend/agentic-seek-front/src/App.js @@ -6,10 +6,10 @@ import { ThemeToggle } from "./components/ThemeToggle"; import { ResizableLayout } from "./components/ResizableLayout"; import faviconPng from "./logo.png"; -const BACKEND_URL = - "http://localhost:7777" || process.env.REACT_APP_BACKEND_URL; +const BACKEND_URL = process.env.REACT_APP_BACKEND_URL || 'http://localhost:7777'; console.log("Using backend URL:", BACKEND_URL); + function App() { const [query, setQuery] = useState(""); const [messages, setMessages] = useState([]);