OleP
OleP
NNuxt
Created by melanie on 4/30/2024 in #❓・help
i18n runtimeConfig different domains not working
The issue is not the environment variable, but rather that the values set in the runtime config is not respected. I found that the value is set in this line: https://github.com/nuxt-modules/i18n/blob/0ef6d8b31a5e052a3326de3054e017d175af8b90/src/runtime/internal.ts#L431, but I've not managed to debug the values there.
22 replies
NNuxt
Created by melanie on 4/30/2024 in #❓・help
i18n runtimeConfig different domains not working
It works fine for baseUrl using NUXT_PUBLIC_I18N_BASE_URL. But it does not work for domains unfortunately.
22 replies
NNuxt
Created by melanie on 4/30/2024 in #❓・help
i18n runtimeConfig different domains not working
According to the documentation, you should be able to overwrite the domain using the runtime config. But this does not seem to work.
22 replies
NNuxt
Created by melanie on 4/30/2024 in #❓・help
i18n runtimeConfig different domains not working
This will work at build time, but will not work at runtime. Many use the same build for staging and production ect., and want to set specific domains on each environment using environment variables.
22 replies
NNuxt
Created by melanie on 4/30/2024 in #❓・help
i18n runtimeConfig different domains not working
May be the documentation that is missing some key detail.
22 replies
NNuxt
Created by melanie on 4/30/2024 in #❓・help
i18n runtimeConfig different domains not working
If anyone can get it to work, I would like to see the nuxt.config.
22 replies
NNuxt
Created by melanie on 4/30/2024 in #❓・help
i18n runtimeConfig different domains not working
22 replies
NNuxt
Created by melanie on 4/30/2024 in #❓・help
i18n runtimeConfig different domains not working
@xibman The issue is that it does not work. The locale domain is not overriden with the runtime config value.
22 replies
NNuxt
Created by melanie on 4/30/2024 in #❓・help
i18n runtimeConfig different domains not working
@melanie Did you find any solution?
22 replies
NNuxt
Created by melanie on 4/30/2024 in #❓・help
i18n runtimeConfig different domains not working
There seems to be a bug in the module regarding this. I'm facing the same issue 😦
22 replies