-
-
Notifications
You must be signed in to change notification settings - Fork 250
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Domain based localed can not working on next 15+ #1572
Comments
Thank you for your report! Unfortunately, the reproduction is missing or incomplete, and as such we cannot investigate this issue. Please add a reproduction to the issue, otherwise it will be closed automatically. Templates: Creating a good reproduction takes time. To help us resolve the issue quickly, please simplify the reproduction as much as possible by removing any unnecessary code, files, and dependencies that are not directly related to the problem. The easier it is for us to see the issue, the faster we can help you. Apart from the reproduction, make sure to include the precise steps on how to reproduce the issue, e.g.:
Thank you for your understanding! FAQ"I've included a reproduction, what is missing?" This comment might have been added because your reproduction doesn't point to a destination where the issue can be reproduced. Please make sure that the latest changes were saved in the reproduction and that the link is correct. |
yes, i will attach reproduce repo. |
BTW: we have multiple domain points one next server port: 3000, |
nginx proxy forward, it caused for port |
i found i need to config domains with. below it works export const routing = defineRouting({
// A list of all locales that are supported
locales: [LanguageCode.en, LanguageCode.de],
// Used when no locale matches
defaultLocale: LanguageCode.en,
localePrefix: 'never',
localeDetection: true,
domains: [
{
domain: 'www.issilo.com:443',
defaultLocale: LanguageCode.en,
locales: [LanguageCode.en],
},
{
domain: 'www.issilo.de:443',
defaultLocale: LanguageCode.de,
// If there are no `locales` specified on a domain,
// all available locales will be supported here
},
],
}); domain with port 443? it this a issue? |
i have changed nignx proxy to remove port , works fine, thanks |
Description
the domain based localed always return
en
if we use
prefix
locale (/en,/de
) it workswww.issilo.com ==> en
www.issilo.de ===> en (wrong)
Verifications
Mandatory reproduction URL
https://github.com/tianyingchun/next-intl-issue
Reproduction description
Steps to reproduce:
Expected behaviour
domain based works correct
The text was updated successfully, but these errors were encountered: