Replies: 1 comment
-
Docusaurus doesn't "host" your site, it only builds it. It is your responsibility to configure your host appropriately to serve the static files the way you want. You can use Vercel/Netlify middleware to redirect a visitor of See my comment here #5838 (comment)
Yes, it always does. For example, if you use GitHub Pages, you can't even do a basic server-side redirect, while every other host support that basic feature. You can build languages independently with When building a single locale, we don't make this very convenient, but you can force a specific |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I built a multi-language docusaurus site (for now, German+French)
So the default language is served from
site/
and French translation fromsite/fr/
.I don't suppose there is any easy way to serve only
site/de/
andsite/fr/
and redirect "language-less" URLs to/de/*
?I can think of a way to build the languages separately and configuring a redirect on host but it makes the build process unnecessarily complicated and it relies on hosting provide capabilities...
Beta Was this translation helpful? Give feedback.
All reactions