fix : problem with frontend connection url selection

This commit is contained in:
martin legrand
2025-07-06 00:19:46 +02:00
parent a2f75e7281
commit cb0206e9ee
+1 -2
View File
@@ -6,10 +6,9 @@ import { ThemeToggle } from "./components/ThemeToggle";
import { ResizableLayout } from "./components/ResizableLayout"; import { ResizableLayout } from "./components/ResizableLayout";
import faviconPng from "./logo.png"; import faviconPng from "./logo.png";
const BACKEND_URL = process.env.REACT_APP_BACKEND_URL || 'http://localhost:7777'; const BACKEND_URL = 'http://localhost:7777' || process.env.REACT_APP_BACKEND_URL;
console.log("Using backend URL:", BACKEND_URL); console.log("Using backend URL:", BACKEND_URL);
function App() { function App() {
const [query, setQuery] = useState(""); const [query, setQuery] = useState("");
const [messages, setMessages] = useState([]); const [messages, setMessages] = useState([]);