Next.js Discord

Discord Forum

How do i setup metadata

Answered
Mawhadmd posted this in #help-forum
Open in Discord
I wanna set up the canonical link and meta data, but i don't know how to correctly set them up, do i add them to each page specificaly or is there an option to add it to the main layout?
Answered by Asian black bear
You define metadata at the root which applies to all pages and then you can selectively overwrite attributes in other route segments.
View full answer

2 Replies

Asian black bear
You define metadata at the root which applies to all pages and then you can selectively overwrite attributes in other route segments.
Answer