Closed mamlzy closed 10 months ago
See the Static Site Generation documentation here: https://next-international.vercel.app/docs/pages-static-site-generation
You have to use getStaticProps
or getServerSideProps
to SSR the initial page. See also the example here: https://github.com/QuiiBz/next-international/blob/62fe48b48f423d6183e4d41ea863a37fe7fe48d2/examples/next-pages/pages/ssr-ssg.tsx#L4
Describe the bug i'm using pages directory. after i'm wrapping my app with
I18nProvider
, the SEO is gone, when i see thepage source
, i just got an emptydiv
, but if i remove theI18nProvider
i got the full html. Can you give me explanation about this? thanks.Screenshots
I18nProvider
About (please complete the following information):