-
Hi, I have one case here: Here is my config for i18n
And i chosen the single domain to deploy my website. But i don't want the default url 'https://my-site/' , Is it possible to visit my website like:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi, I understand that you don't want the baseUrl to be removed for the default locale. For now, we don't make it very easy, unfortunately. But a new Should be available in the upcoming v2.4, but you can try using a canary version today. We also want to add first-class support for a baseUrl that you can configure per locale, as it was attempted in this draft PR: #6731 |
Beta Was this translation helpful? Give feedback.
Hi,
I understand that you don't want the baseUrl to be removed for the default locale.
For now, we don't make it very easy, unfortunately.
But a new
DOCUSAURUS_CURRENT_LOCALE
env variable available in the config file should make it easy to tweak the config on a per-locale basis (ie usebaseUrl:
/zh/for locale
zh`).Should be available in the upcoming v2.4, but you can try using a canary version today.
#8677
We also want to add first-class support for a baseUrl that you can configure per locale, as it was attempted in this draft PR: #6731