Skip to content

Commit

Permalink
Add note about using the /_error page directly to custom error page a…
Browse files Browse the repository at this point in the history
…rticle (#39671)

See #39144

It's not completely clear that `/_error` should not be used as a normal page. Added a note under `Caveats` in the custom error page article
  • Loading branch information
masad-frost committed Aug 22, 2022
1 parent b7c2bd1 commit 63651a6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/advanced-features/custom-error-page.md
Expand Up @@ -98,3 +98,4 @@ If you have a custom `Error` component be sure to import that one instead. `next
### Caveats

- `Error` does not currently support Next.js [Data Fetching methods](/docs/basic-features/data-fetching.md) like [`getStaticProps`](/docs/basic-features/data-fetching/get-static-props.md) or [`getServerSideProps`](/docs/basic-features/data-fetching/get-server-side-props.md).
- `_error`, like `_app`, is a reserved pathname. `_error` is used to define the customized layouts and behaviors of the error pages. `/_error` will render 404 when accessed directly via [routing](/docs/routing/introduction) or rendering in a [custom server](/docs/advanced-features/custom-server).

0 comments on commit 63651a6

Please sign in to comment.