Dynamically set page title in app router (RSC)

How do I set the browser title dynamically (say using some data from supabase that runs on server side). I can do it using RSC or client side just don't know how to do this dynamically.
No description
Solution:
Functions: generateMetadata | Next.js
Learn how to add Metadata to your Next.js application for improved search engine optimization (SEO) and web shareability.
Jump to solution
3 Replies
Solution
teos
teos10mo ago
Functions: generateMetadata | Next.js
Learn how to add Metadata to your Next.js application for improved search engine optimization (SEO) and web shareability.
teos
teos10mo ago
It's exactly the same as metadata, just as an async function that must return an object, as you would expect
Mehul Sharma
Mehul SharmaOP10mo ago
Thanks!
Want results from more Discord servers?
Add your server