-
|
Hi all, I’m trying to figure out if what I want is possible with next-intl in a static export setup, because for my case language detection is not necessary, and I wanted to ask for guidance. Here’s a related discussion for extra context: #2048 Here’s what I want to achieve: Default language English served at / (root), without any redirect. Other languages like Spanish or French served at /es or /fr (with prefix). No middleware running at all, to keep fluid active CPU usage minimal. This should be compatible with static export (next export). So the idea would be something like: My question is:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
Sure, sounds fine! Everything relevant should be listed here: Usage without proxy / middleware (static export) |
Beta Was this translation helpful? Give feedback.
Oh yes, sorry I missed this in a rush. The middleware is indeed required for the
as-neededstrategy. You could however run it with a matcher that only triggers if you see a pathname that doesn't start with/es,/fr, … (and also not for static assets).