-
-
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
feat: set locale domains via runtimeConfig (#2443) #2446
feat: set locale domains via runtimeConfig (#2443) #2446
Conversation
β Live Preview ready!
|
@cjpearson |
Thanks for contributing! I think this feature looks good, I prefer it over the approach currently described in the docs here: https://v8.i18n.nuxtjs.org/guide/different-domains#runtime-environment-variables I think if you change/replace the example in the linked documentation to use this feature it would be perfect! What do you think @kazupon? |
Thanks! I made a pass at updating the guide with an example |
Thank you for your contribution! |
Hi @kazupon I updated the docs for runtime config and routing and added an example to the different domains guide. Is there anything else I should change in the docs? |
I have raised the test job timeout, if you rebase your branch on |
deb5f26
to
b952ca4
Compare
Not sure why the tests keep failing repeatedly now, I know that it's not because of your code as they pass locally. Looks like the flaky test debt has caught up with us π, will take some time to look into this. |
Yeah. |
b952ca4
to
817eff0
Compare
817eff0
to
6fc54c5
Compare
β¦modules#2446) * feat: set locale domains via runtimeConfig (nuxt-modules#2443) * docs: add example of runtime domain configuration to the guide
π Linked issue
#2443
β Type of change
π Description
This change allows setting locale domains via the runtime config. Currently when enabling
differentDomains
the app must be recompiled for each environment because the domains are set at compile time. With this change a single build can be used on different environments with different .env files.e.g.
production .env
staging .env
π Checklist