From 8bc501fa850ea9a3a117948c6a711a72adae09e0 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 4 Apr 2026 06:19:11 +0000 Subject: [PATCH 1/2] Initial plan From 0b38f9f703efde70d09f862e849e111bbcf57c41 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 4 Apr 2026 06:35:18 +0000 Subject: [PATCH 2/2] fix: correct default API_BASE_URL and improve sidebar error message Agent-Logs-Url: https://github.com/velocitatem/cvfs/sessions/1a9aa3e0-c4e1-48fb-b646-49f31c316325 Co-authored-by: velocitatem <60182044+velocitatem@users.noreply.github.com> --- apps/webapp/next.config.ts | 2 +- apps/webapp/src/app/dashboard/page.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/webapp/next.config.ts b/apps/webapp/next.config.ts index 6676648..740aeb0 100644 --- a/apps/webapp/next.config.ts +++ b/apps/webapp/next.config.ts @@ -4,7 +4,7 @@ import path from "node:path"; const nextConfig: NextConfig = { outputFileTracingRoot: path.join(process.cwd(), "../.."), async rewrites() { - const backend = process.env.API_BASE_URL ?? "https://api.cv.alves.world"; + const backend = process.env.API_BASE_URL ?? "http://localhost:9812"; return [{ source: "/api/:path*", destination: `${backend}/api/:path*` }]; }, }; diff --git a/apps/webapp/src/app/dashboard/page.tsx b/apps/webapp/src/app/dashboard/page.tsx index a0ce5bf..892b7e8 100644 --- a/apps/webapp/src/app/dashboard/page.tsx +++ b/apps/webapp/src/app/dashboard/page.tsx @@ -495,7 +495,7 @@ export default function Dashboard() { setDocs(d); if (d.length) { setSelectedDocId(d[0].id); setSelectedVersionId(d[0].root_version_id ?? null); } }) - .catch(e => setError(e.message)) + .catch(() => setError('Failed to load documents. Make sure the backend is running.')) .finally(() => setLoading(false)); }, []);