From b4628184299323d42ef8a864f23a01565b657794 Mon Sep 17 00:00:00 2001 From: Delba de Oliveira Date: Fri, 9 Jun 2023 09:37:37 +0100 Subject: [PATCH 1/2] Update warning to link to the correct docs page --- .../next/src/build/webpack/loaders/next-flight-loader/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/next/src/build/webpack/loaders/next-flight-loader/index.ts b/packages/next/src/build/webpack/loaders/next-flight-loader/index.ts index 09a309d077dd..aa3c23be97e1 100644 --- a/packages/next/src/build/webpack/loaders/next-flight-loader/index.ts +++ b/packages/next/src/build/webpack/loaders/next-flight-loader/index.ts @@ -95,7 +95,7 @@ export { e${cnt++} as ${ref} };` if (buildInfo.rsc?.type !== RSC_MODULE_TYPES.client) { if (noopHeadPath === this.resourcePath) { warnOnce( - `Warning: You're using \`next/head\` inside the \`app\` directory, please migrate to the Metadata API. See https://nextjs.org/docs/app/api-reference/file-conventions/metadata for more details.` + `Warning: You're using \`next/head\` inside the \`app\` directory, please migrate to the Metadata API. See https://nextjs.org/docs/app/building-your-application/optimizing/metadata for more details.` ) } } From a397dde0d63730a76a9e508639b5adaef8b0d1f1 Mon Sep 17 00:00:00 2001 From: Delba de Oliveira <32464864+delbaoliveira@users.noreply.github.com> Date: Mon, 12 Jun 2023 18:44:09 +0100 Subject: [PATCH 2/2] Update packages/next/src/build/webpack/loaders/next-flight-loader/index.ts --- .../next/src/build/webpack/loaders/next-flight-loader/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/next/src/build/webpack/loaders/next-flight-loader/index.ts b/packages/next/src/build/webpack/loaders/next-flight-loader/index.ts index aa3c23be97e1..8667ba88b75a 100644 --- a/packages/next/src/build/webpack/loaders/next-flight-loader/index.ts +++ b/packages/next/src/build/webpack/loaders/next-flight-loader/index.ts @@ -95,7 +95,7 @@ export { e${cnt++} as ${ref} };` if (buildInfo.rsc?.type !== RSC_MODULE_TYPES.client) { if (noopHeadPath === this.resourcePath) { warnOnce( - `Warning: You're using \`next/head\` inside the \`app\` directory, please migrate to the Metadata API. See https://nextjs.org/docs/app/building-your-application/optimizing/metadata for more details.` + `Warning: You're using \`next/head\` inside the \`app\` directory, please migrate to the Metadata API. See https://nextjs.org/docs/app/building-your-application/upgrading/app-router-migration#step-3-migrating-nexthead for more details.` ) } }