Configuration for displaying error messages #81912
SiegeSailor
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Goals
next.config.js
: The current Next.js 15 error handling behavior is that it "hides" the real server errors and presents a digest hash value instead (see https://nextjs.org/docs/app/getting-started/error-handling). However, the server logs and the client terminal are not always reachable. It would be perfect to be able to configure it.Non-Goals
No response
Background
I am developing a medical device, which runs Next.js on a purpose-built Linux ARM64 board. The application kept throwing an error that never appeared in development mode but showed up a lot in the standalone build (not even in other ARM64 machines). The board has a very low performance; its browser is cog (very minimum WPEKit), and the labs/hospitals usually don't have internet access. This gives me a tough time to debug. I have to reproduce it on my board without the actual hardware/firmware and environment setup, and trace back the change log to disable/enable configurations and features to "guess" what's wrong.
Errors I Have Seen
The SyntaxError throws a lot when I run the standalone build on the purpose-built Linux board. However, I have never seen this on macOS, Linux on AMD64, and even development mode on the purpose-built board:
The following happens when the Next.js app
crashes
(refreshes the page unexpectedly):I am still not 100% sure about the cause. Could be low-available CPU so the event listeners accumulate too many, or the network overheads occupies the
cog
browser, or constant MongoDB connection/write/read failure. (Next.js, Python gRPC server, Nginx, custom Proxy server, and MongoDB are all running in a Docker container on the board)Proposal
Beta Was this translation helpful? Give feedback.
All reactions