Unverified Commit d106155c authored by Delba de Oliveira's avatar Delba de Oliveira Committed by GitHub

Update `next/head` warning to link to the correct docs page (#51013)

Fixes https://github.com/vercel/next.js/issues/50844
parent a973ad64
...@@ -95,7 +95,7 @@ export { e${cnt++} as ${ref} };` ...@@ -95,7 +95,7 @@ export { e${cnt++} as ${ref} };`
if (buildInfo.rsc?.type !== RSC_MODULE_TYPES.client) { if (buildInfo.rsc?.type !== RSC_MODULE_TYPES.client) {
if (noopHeadPath === this.resourcePath) { if (noopHeadPath === this.resourcePath) {
warnOnce( 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/upgrading/app-router-migration#step-3-migrating-nexthead for more details.`
) )
} }
} }
......
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