Metadata
To set the page title in the App Router render a Head element from next/head inside your component.
communityWidely shared Next.js Q&A answersconfidence 25%current as of Mar 2023
Some answers tell App Router users to import Head from next/head then render title and meta tags inside it. next/head does not update the head in a Server Component so the tags do not take effect. This is carried over from the Pages Router. The App Router path is the Metadata API.