"use client"; import { useEffect } from "react"; import { usePathname } from "next/navigation"; export default function DocsError({ error, reset, }: { error: Error & { digest?: string }; reset: () => void; }) { const pathname = usePathname(); useEffect(() => { // Log the full Error instance (not just .message/.digest) so the // stack trace reaches the server log / browser devtools. Include // pathname where available so reports can be tied back to a page. console.error( `[docs] Page render error${pathname ? ` on ${pathname}` : ""}:`, error, ); }, [error, pathname]); return (

Something went wrong

We hit an error rendering this page. Please refresh, and if it keeps happening, report it with the ID below so we can track it down.

{error.digest && (

Error ID: {error.digest}

)}
); }