Unverified Commit 9e3c1829 authored by Deepa Subramanian's avatar Deepa Subramanian Committed by GitHub

docs: add `not-found` to file conventions page (#55944)

Issue: https://github.com/vercel/next.js/issues/53888

Added "not-found.js" information to error.mdx after the `global-error.js`. Please approve.
Co-authored-by: 's avatarLee Robinson <9113740+leerob@users.noreply.github.com>
parent 37b5cea7
...@@ -147,6 +147,10 @@ export default function GlobalError({ error, reset }) { ...@@ -147,6 +147,10 @@ export default function GlobalError({ error, reset }) {
> - `global-error.js` replaces the root `layout.js` when active and so **must** define its own `<html>` and `<body>` tags. > - `global-error.js` replaces the root `layout.js` when active and so **must** define its own `<html>` and `<body>` tags.
> - While designing error UI, you may find it helpful to use the [React Developer Tools](https://react.dev/learn/react-developer-tools) to manually toggle Error boundaries. > - While designing error UI, you may find it helpful to use the [React Developer Tools](https://react.dev/learn/react-developer-tools) to manually toggle Error boundaries.
## not-found.js
The [`not-found`](https://nextjs.org/docs/app/api-reference/file-conventions/not-found) file is used to render UI when the `notFound()` function is thrown within a route segment.
## Version History ## Version History
| Version | Changes | | Version | Changes |
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment