From d03e8a0d35ec48ae7152e8d9d8bdecbbd822743c Mon Sep 17 00:00:00 2001 From: Zack Tanner <1939140+ztanner@users.noreply.github.com> Date: Wed, 9 Oct 2024 13:03:47 -0700 Subject: [PATCH] add note about typecast --- .../01-building-your-application/11-upgrading/01-codemods.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/02-app/01-building-your-application/11-upgrading/01-codemods.mdx b/docs/02-app/01-building-your-application/11-upgrading/01-codemods.mdx index 0947b643b3442e..a54d2c37ef92ca 100644 --- a/docs/02-app/01-building-your-application/11-upgrading/01-codemods.mdx +++ b/docs/02-app/01-building-your-application/11-upgrading/01-codemods.mdx @@ -154,7 +154,7 @@ export function generateMetadata(props: { params: { slug: string } }) { } ``` -> **Good to know:** When this codemod identifies a spot that might require manual intervention, but we aren't able to determine the exact fix, it will add a comment to the code to inform the user that it needs to be manually updated. These comments are prefixed with **Next.js Dynamic Async API Codemod**. Your build will error until these comments are explicitly removed. +> **Good to know:** When this codemod identifies a spot that might require manual intervention, but we aren't able to determine the exact fix, it will add a comment (or typecast) to the code to inform the user that it needs to be manually updated. These comments are prefixed with **Next.js Dynamic Async API Codemod**, and typecasts are prefixed with `UnsafeUnwrapped`. Your build will error until these comments are explicitly removed. #### Replace `geo` and `ip` properties of `NextRequest` with `@vercel/functions`