Generate internationalized metadata for static pages #1183
-
Hi guys, just asking around to see if anyone has implemented a next project with some statically generated pages and internationalized metadata info. I'm building a site with next-intl and sanity as cms, futher context can be found here. Right now I'm struggling to find a way that uses |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hey @m4rvelous252, if you implement metadata as shown in the corresponding docs then SSG should work correctly. The key is providing the Hope this helps! |
Beta Was this translation helpful? Give feedback.
-
Thanks for the tips, I just found out the page was being server rendered because of a revalidation setup in the request for the metadata not the use of |
Beta Was this translation helpful? Give feedback.
Hey @m4rvelous252, if you implement metadata as shown in the corresponding docs then SSG should work correctly. The key is providing the
locale
to functions likegetTranslations
(see also the green callout at the bottom of the section).Hope this helps!