"use client" import { useEffect } from "react" /** * Top-level error boundary for every route under app/. Next.js renders * this when a server component throws or a client render exception * escapes the closest boundary. Replaces the bare default * "Application error: a client-side exception has occurred" overlay * with a recoverable affordance so a transient backend hiccup (cold * parquet cache, slow first query) doesn't strand the reader on an * unfriendly screen. */ export default function RouteError({ error, reset, }: { error: Error & { digest?: string } reset: () => void }) { useEffect(() => { if (typeof window !== "undefined" && "console" in window) { console.error("[route-error]", error) } }, [error]) return (
We couldn't load this view. The data backend may still be warming up: most cold-start hiccups clear within a few seconds.
{error.digest && (