-
-
Notifications
You must be signed in to change notification settings - Fork 483
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
Infinite reload with differentDomains: true #1563
Comments
|
Unfortunately, this setting doesn't change anything, refresh loop persists. |
Seeing the same thing - already have |
sorry, for late reply. Unfortunately, I could not reproduce this issue in v8.0.0-beta.2 😞 |
@kazupon still seeing this in beta 3 This is my config:
|
Same problem |
@boboldehampsink |
This is my config. export default defineNuxtConfig({
modules: ['@nuxtjs/i18n'],
i18n: {
locales: [
{
code: 'en',
domain: 'mysite.test:3000',
},
{
code: 'de',
domain: 'mysite.testde:3000',
},
],
trailingSlash: true,
differentDomains: true,
defaultLocale: 'en',
strategy: 'prefix_and_default',
detectBrowserLanguage: false,
// detectBrowserLanguage: {
// useCookie: false,
// redirectOn: 'root',
// fallbackLocale: 'en',
// // alwaysRedirect: true,
// },
vueI18n: {
legacy: false,
messages: {
en: {
welcome: 'Welcome',
},
de: {
welcome: 'Willkommen',
},
},
},
},
}) |
I've just released |
I just tested your release, but refresh loop is always here for me. |
Thank you @kazupon Will you port this to @nuxtjs/i18n? |
@maxsolovev what is your config? Same as above? For me the redirect loop persists. |
Yes, it's same. But there were problems with routing. |
Version
@nuxtjs/i18n: 8.0.0-alpha.3
nuxt: 3.0.0-rc.11
Nuxt configuration
nuxt generate
)@nuxtjs/i18n configuration
Steps to reproduce
I use pm2 to manage the app execution.
Set differentDomains: true in i18n config, run yarn build, and launch app with pm2. Access the app via FR or EN domain, the refresh loop begins.
When differentDomains is set to false, the issue doesn't appear.
In the doc I see "// TODO: 🚧 This feature is not implemented yet.", but it seems working because when I access app with FR or EN domain, my content is in correct language, but the refresh loop make the UI unusable.
Thanks.
The text was updated successfully, but these errors were encountered: