Routing to default Locale if trying to use an unsupported locale #680
-
Hello, Is there a way to make unsupported locales route to default locale? For example if our app supports the following:
and receives unsupported The problem is that our next.js app is embedded in http://example.com/{locale}/home Teams then replace the Since we only support a subset of the locales they support, we don't want to get 404s for the unsupported locales but rather re-route to our default locale. We would prefer not having to manually specify each of these unsupported locales in next.config.js's redirects because this doesn't scale. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Yes, I think you can use the |
Beta Was this translation helpful? Give feedback.
-
@aralroca This worked, thanks.
|
Beta Was this translation helpful? Give feedback.
@aralroca This worked, thanks.