Unverified Commit b5b2a6c1 authored by Emmanuel Oduntan's avatar Emmanuel Oduntan Committed by GitHub

Fix incorrect route param (#79795)

In the example under the "Generated Metadata" section of the page, the
route is defined as `/app/blog/[slug]/page.tsx`, but the Props type uses
`id` instead of `slug`. This fixes the mismatch to reflect the actual
dynamic route segment
Co-authored-by: 's avatarJJ Kasper <jj@jjsweb.site>
parent 323ec0ae
...@@ -72,7 +72,7 @@ You can use [`generateMetadata`](/docs/app/api-reference/functions/generate-meta ...@@ -72,7 +72,7 @@ You can use [`generateMetadata`](/docs/app/api-reference/functions/generate-meta
import type { Metadata, ResolvingMetadata } from 'next' import type { Metadata, ResolvingMetadata } from 'next'
type Props = { type Props = {
params: Promise<{ id: string }> params: Promise<{ slug: string }>
searchParams: Promise<{ [key: string]: string | string[] | undefined }> searchParams: Promise<{ [key: string]: string | string[] | undefined }>
} }
......
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