You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Mode in which the Next.js standard error screen does not appear under any circumstances
It is assured that hostname is not drawn when the standard error screen is displayed
Other good ideas
Non-Goals
Background
The Next.js standard error screen is designed to force the rendering of the hostname, but in my product it is undesirable to display information such as URLs and host names on the screen.
Even if you implement error.tsx or global-error.tsx, the standard error screen may be displayed in some cases, such as when an exception occurs on the client side.
This issue has already been raised several times in the Next.js repository, but it has not been addressed for a long time.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
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
Non-Goals
Background
The Next.js standard error screen is designed to force the rendering of the hostname, but in my product it is undesirable to display information such as URLs and host names on the screen.
https://github.com/vercel/next.js/blob/canary/packages/next/src/client/components/global-error.tsx#L39
Even if you implement error.tsx or global-error.tsx, the standard error screen may be displayed in some cases, such as when an exception occurs on the client side.
This issue has already been raised several times in the Next.js repository, but it has not been addressed for a long time.
#66905
#55647
#55462
#76439
Proposal
The option to disable hostname rendering
Beta Was this translation helpful? Give feedback.
All reactions