-
-
Notifications
You must be signed in to change notification settings - Fork 8.5k
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
How can docusaurus' 404 page be adapted to other language pages? #10473
Comments
Which 404 page gets served depends on your server. Most servers send Maybe we can add this to the docs. |
What should I do if I don't use a hosting service? |
What are you using? |
I deployed docusaurus directly on my local machine without using a web hosting service. |
Yes we should document this. Not easy though because we can't write a full guide to all the existing hosting platforms. But we can give a few generic hosting recommendations. I also want to give a few tips like setting caching headers for assets, leveraging Webpack persistent caching etc... Not sure where to put that, the deployment page is already quite messy and long. Maybe we need a whole sidebar category just for deployment?
What does "deployed" mean, you must be running something on your local machine. You should read the doc of the tool you use, and see if it's possible to redirect 404 reponses to the Note that I don't think we expose any way to serve the localized 404 page, but that could be an interesting thing to add automatically. This is the lib we use under the hood and it supports rewrites: https://github.com/vercel/serve-handler If you use something else, you'd have to figure it out because we don't provide support for anything else than |
OK, I understand. I use docusaurus serve. I will follow your advice and adjust my website according to the deployment section in the document. Thank you! Maybe you can consider adding why you need a hosting service and the advantages of using a hosting service in the deployment document. This is just a suggestion. Thanks for your reply! |
Have you read the Contributing Guidelines on issues?
Description
How can docusaurus' 404 page be adapted to other language pages?
When I switch to other languages, such as French, I find that the 404 page cannot be switched to French, and the language switch box does not respond. Is there any way to make the 404 page change with the language switch?
Self-service
The text was updated successfully, but these errors were encountered: