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
I have searched the issues of this repository and believe that this is not a duplicate.
Expected Behavior
When encountering an internal server error, it's expected that the server rendered markup matches the clients, thus avoiding flashing content.
Current Behavior
Currently internal server errors will cause a flash. More explicitly, the statusCode prop isn't present when rendering _error.js in the client, causing the markup to differ.
Steps to Reproduce (for bugs)
Setup a simple Next.js project.
Add a page pages/500.js with the following content:
exportdefault()=>{thrownewError('Boom!')}
next build && next start
Point a browser to http://localhost:3000/500.
Context
When deploying an application to production, internal server errors cause an unwanted flash of content.
Your Environment
Tech
Version
next
v5.0.1-canary.7
node
v9.4.0
OS
macOS v10.13.3
browser
Chrome v64
The text was updated successfully, but these errors were encountered:
Expected Behavior
When encountering an internal server error, it's expected that the server rendered markup matches the clients, thus avoiding flashing content.
Current Behavior
Currently internal server errors will cause a flash. More explicitly, the
statusCode
prop isn't present when rendering_error.js
in the client, causing the markup to differ.Steps to Reproduce (for bugs)
pages/500.js
with the following content:next build && next start
http://localhost:3000/500
.Context
When deploying an application to production, internal server errors cause an unwanted flash of content.
Your Environment
The text was updated successfully, but these errors were encountered: