#SSG and i18n

2 messages · Page 1 of 1 (latest)

calm cape
#

Hello everybody !

My requirement is to build a static next app so that it can be hosted on a static server.
I also need my app to be internationalized.

I have seen this tweet that seems to indicate that it is now possible to have SSG with i18n routing with the new app folder : https://twitter.com/leeerob/status/1640445075959484418

I tried to achieve this following this documentation: https://nextjs.org/docs/app/building-your-application/routing/internationalization, but it uses middleware, and unfortunately middleware cannot be used with "output: export". So SSG is not compatible with this approach.

As anybody managed to implement i18n + SSG successfully ? This is my requirement and I am struggling.

eager geyser
#

I am facing the similar problem, because the rewrite config (middleware) cannot be used in "output: export" mode, I wonder is there any other way to set proxy server?