'use client' import Link from 'next/link' import { useEffect } from 'react' interface ErrorProps { error: Error & { digest?: string } reset: () => void } export default function Error({ error, reset }: ErrorProps) { const isDev = process.env.NODE_ENV === 'development' useEffect(() => { // Surface the error for local debugging and any attached error tracker. if (isDev) { // eslint-disable-next-line no-console console.error(error) } }, [error, isDev]) return (
RUNTIME ERROR
We hit an unexpected error while rendering this page. You can retry, and if it keeps happening, head back home.
{/* Actions */}digest: {error.digest}
)}
{error.message}