"use client"; import Link from "next/link"; /** * App-level error boundary — global net of last resort (#1001, 958-B5). * * Catches render errors not handled by a nested route `error.tsx`, so no route * in the app can fall through to a blank white screen. */ export default function Error({ error, reset, }: { error: Error & { digest?: string }; reset: () => void; }) { return (

Что-то пошло не так

{process.env.NODE_ENV === "production" ? "Попробуйте обновить страницу или вернуться на главную." : error.message || "Произошла непредвиденная ошибка."}

← На главную
); }