garmeeh / next-seo

Next SEO is a plug in that makes managing your SEO easier in Next.js projects.
MIT License
7.6k stars 392 forks source link

Warning: You're using `next/head` inside the `app` directory, #1348

Open nabilfatih opened 9 months ago

nabilfatih commented 9 months ago

Describe the bug 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.

Reproduction Use Jsonld in app dir. I set it useAppDir={true}. it works, but it kinda annoying to see that warning in terminal, i think because it set in the same file you declare next/head, thats why this warning occur.

Expected behavior No warning, maybe create seperate file specifically for app dir

Additional context Thanks for creating this repo :)

TREX-SmolPP commented 2 weeks ago

im getting the same thing too for the past 6 hours. any updates?