i18n with SSG and index/home page as / instead of /en and /etc instead of /en/etc
Unanswered
American posted this in #help-forum
AmericanOP
Hello Everyone,
I hope y'all are doing great! So I have this question for quite some time now and I always research it and reach a dead end and go back to Gatsby or something else.
I want to know is it possible to get nextjs SSG (export) have the following routes
-
-
-
-
This is achievable with the middleware when it is SSR
So basically is it possible to run the middleware before/while building the project?
Thanks for the help!
I hope y'all are doing great! So I have this question for quite some time now and I always research it and reach a dead end and go back to Gatsby or something else.
I want to know is it possible to get nextjs SSG (export) have the following routes
-
example.com/ instead of example.com/en-
example.com/lang if not en-
example.com/blog/etc instead of example.com/en/blog/etc-
example.com/lang/blog/etc if not enThis is achievable with the middleware when it is SSR
So basically is it possible to run the middleware before/while building the project?
Thanks for the help!