garmeeh/next-seo

nextjs13 deprecating head.js

sharpsteelsoftware1 opened this issue ยท 4 comments

According to https://beta.nextjs.org/docs/api-reference/metadata head.js will be deprecated. Any thoughts on what it means for the future of this library?

https://nextjs.org/blog/next-13-2#built-in-seo-support-with-new-metadata-api

Looks like Next's 13.2 makes this package obsolete

Hey @sharpsteelsoftware1 / @Arjan-Zuidema ๐Ÿ‘‹

I had the pleasure of meeting with the Next.js team on the new meta data api and was able to give early feedback on it.

A small % of next-seo will be replaced by the meta data api eventually. The rest of next-seo will be useful for JSON-LD.

At the moment the new meta data api is only available in the app directory which is not yet stable or production ready. So this library will be still used in pages.

I don't see the core of this library being removed anytime soon as many enterprise sites rely on next-seo and I can't see them migrating to app directory` fully anytime soon.

@garmeeh Is it possible to use next-seo in the app directory with server rendered pages? Read through the docs and implemented the steps listed but neither the title, description, etc. don't render at all.

Hey @justiny there was some specific docs for the app directory. I have updated the main docs now to reflect how it works with the app directory.