import type { ReactNode } from "react"; import type { ErrorBoundaryFallbackProps } from "./types.js"; /** * Default error boundary fallback component * * This is rendered when an error occurs and no custom error boundary * is defined in the route tree. Shows a simple "Internal Server Error" * message with the error details in development. */ export function DefaultErrorFallback({ error, }: ErrorBoundaryFallbackProps): ReactNode { const isDev = process.env.NODE_ENV !== "production"; return (

Internal Server Error

An unexpected error occurred while processing your request.

{isDev && (

{error.name}: {error.message}

{error.stack && (
              {error.stack}
            
)}
)} Go to homepage
); }