Next.js · Senior · Question 29 of 75

How does metadata from generateMetadata behave during streaming?

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.

Further reading

Problem with a question

Next.js · Senior · question 29

Test yourself

Take the Next.js · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz