Next.js · Senior · Question 29 of 75
How does metadata from generateMetadata behave during streaming?
- ✓Correct answer: It streams after the UI, but for HTML-only bots the response waits for it
- 2It always blocks the whole response until the metadata is computed
- 3It's generated on the client after hydration via
document.title
Explanation
Streaming metadata avoids delaying the first byte with a slow generateMetadata. Bots that don't run JS (detected by User-Agent, configurable via htmlLimitedBots) get the metadata in <head> before the HTML is sent, so SEO doesn't suffer.