mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
Update README.md (#6106)
* Update README.md
I know I'm a moron for not understanding what's written in black on white, but... Maybe this will save someone an hour or two 😄
* Apply proposed changed
This commit is contained in:
parent
b8057edd6e
commit
f4f3649de3
|
@ -1164,7 +1164,7 @@ export default class MyDocument extends Document {
|
|||
|
||||
404 or 500 errors are handled both client and server side by a default component `error.js`. If you wish to override it, define a `_error.js` in the pages folder:
|
||||
|
||||
⚠️ The default `error.js` component is only used in production ⚠️
|
||||
⚠️ The `pages/_error.js` component is only used in production. In development you get an error with call stack to know where the error originated from. ⚠️
|
||||
|
||||
```jsx
|
||||
import React from 'react'
|
||||
|
|
Loading…
Reference in a new issue