I recently came across a section in the official Next.js documentation that states, "When running next dev, the error will be serialized and forwarded from the Server Component to the client error.js. To ensure security when running next start in production, a generic error message is forwarded to error along with a .digest which contains a hash of the error message. This hash can be used to correspond to server logs."
I'm currently building an app deployed to Vercel, and I've noticed that the errors are not coming through as they're transformed into this digest so I'm not able to work with them in like specific form errors coming from a server action method. I understand that this is done for security reasons in production, but I'm wondering if there's a way to override this behavior and display the actual error messages instead of the digest.
Has anyone else experienced this issue or found a solution to it? I would appreciate any tips or advice , maybe i'm just dumb .
Thanks in advanced!