error digest
A short generated hash attached to server errors so you can match what the user sees with the full error in the server logs.
In more detail
In production Next.js hides the message of errors thrown in Server Components from the browser, to avoid leaking sensitive details, and passes only the digest. Show it on the error screen so support can look it up.
Related terms
- error.tsx — A special file that wraps a route segment in an error boundary and renders its component when something below it throws.
- hash — A short fixed-length fingerprint calculated from data, which changes completely if even one byte of the data changes.
Taught in
- Error Boundaries: Nested error.tsx & Reset Logic — Next.js 15 & Modern App Router Architecture