Unverified Commit 95d3d8ec authored by Alex Kostyniuk's avatar Alex Kostyniuk Committed by GitHub

docs: clarify metadata support in root not-found (#98670)

docs: document metadata/generateMetadata in root `app/not-found.js` as
it works, but docs don't specify it
parent 4731e968
......@@ -182,7 +182,7 @@ If you need to use Client Component hooks like `usePathname` to display content
### Metadata
For `global-not-found.js`, you can export a `metadata` object or a [`generateMetadata`](/docs/app/api-reference/functions/generate-metadata) function to customize the `<title>`, `<meta>`, and other head tags for your 404 page:
Both the root `app/not-found.js` and `app/global-not-found.js` support exporting a `metadata` object or a [`generateMetadata`](/docs/app/api-reference/functions/generate-metadata) function to customize the `<title>`, `<meta>`, and other head tags for your 404 page:
> **Good to know**: Next.js automatically injects `<meta name="robots" content="noindex" />` for pages that return a 404 status code, including `global-not-found.js` pages.
......
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