Unverified Commit b12e6fef authored by Steven's avatar Steven Committed by GitHub

chore(docs): fix typo in generate metadata docs (#52904)

- See current bug:
https://nextjs.org/docs/app/api-reference/functions/generate-metadata#generatemetadata-function
- Closes #52903
parent 08e87fb4
...@@ -109,8 +109,7 @@ export async function generateMetadata( ...@@ -109,8 +109,7 @@ export async function generateMetadata(
export default function Page({ params, searchParams }: Props) {} export default function Page({ params, searchParams }: Props) {}
``` ```
``` ```jsx filename="app/products/[id]/page.js" switcher
jsx filename="app/products/[id]/page.js" switcher
export async function generateMetadata({ params, searchParams }, parent) { export async function generateMetadata({ params, searchParams }, parent) {
// read route params // read route params
const id = params.id const id = params.id
......
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