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)); }, []);