From fbad00a45ecd324170d96123a3fa4a2df82eb64c Mon Sep 17 00:00:00 2001 From: Hyungji <84058944+hyungjikim@users.noreply.github.com> Date: Fri, 22 Nov 2024 19:57:56 +0900 Subject: [PATCH] Update docs/01-app/02-building-your-application/02-data-fetching/04-incremental-static-regeneration.mdx Co-authored-by: Maikel --- .../02-data-fetching/04-incremental-static-regeneration.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 45c28f709ba4b..c35a907457a28 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 @@ -86,7 +86,7 @@ export async function generateStaticParams() { } export default async function Page({ params }) { - const id = (await params).id + const { id } = await params const post = await fetch(`https://api.vercel.app/blog/${id}`).then( (res) => res.json() )