Next.js Discord

Discord Forum

NextJS `generateMetadata` is rendering outside of the `<head>` tag

Unanswered
Whiteleg shrimp posted this in #help-forum
Open in Discord
Whiteleg shrimpOP
I am on Next16. Per the [Next.js 15.2 ](https://nextjs.org/blog/next-15-2#streaming-metadata)blog post, streaming metadata is intended:

* For regular browsers: metadata can stream after the initial HTML, improving performance
* For bots/crawlers: metadata should still be in <head> — Next.js delays sending HTML to known bot user agents

However, as I am trying to get my site indexing issues fixed, I decided to test out Screaming Frog. The scan of my site says:

>Issue: HIGH, PageTitle outside <head>

Sure enough, it is rendered in the body, along with all the other SEO-things from generateMetadata.

So, is Screaming Frog right or wrong here? Do I actually need to fix this?

0 Replies