diff --git a/docs/01-app/02-building-your-application/02-data-fetching/04-incremental-static-regeneration.mdx b/docs/01-app/02-building-your-application/02-data-fetching/04-incremental-static-regeneration.mdx index 8ea27c4b43141f..7e2b5e2f509ff5 100644 --- a/docs/01-app/02-building-your-application/02-data-fetching/04-incremental-static-regeneration.mdx +++ b/docs/01-app/02-building-your-application/02-data-fetching/04-incremental-static-regeneration.mdx @@ -54,9 +54,9 @@ export default async function Page({ params: Promise<{ id: string }> }) { const id = (await params).id - const post: Post = await fetch( - `https://api.vercel.app/blog/${params.id}` - ).then((res) => res.json()) + const post: Post = await fetch(`https://api.vercel.app/blog/${id}`).then( + (res) => res.json() + ) return (

{post.title}