.NET: DevUI: Use relative URLs for backend API by default (#2005)

* DevUI: Use relative URLs for backend API by default

* dotnet format

* rebuild application
This commit is contained in:
Reuben Bond
2025-11-07 09:01:04 -08:00
committed by GitHub
Unverified
parent 00b67e191b
commit 3d94ae57ed
6 changed files with 20 additions and 27 deletions
@@ -27,7 +27,7 @@ export function SettingsModal({ open, onOpenChange, onBackendUrlChange }: Settin
const [activeTab, setActiveTab] = useState<Tab>("settings");
// Get current backend URL from localStorage or default
const defaultUrl = import.meta.env.VITE_API_BASE_URL || "http://localhost:8080";
const defaultUrl = import.meta.env.VITE_API_BASE_URL !== undefined ? import.meta.env.VITE_API_BASE_URL : "";
const [backendUrl, setBackendUrl] = useState(() => {
return localStorage.getItem("devui_backend_url") || defaultUrl;
});