Skip to content

404 error after adding trailingSlash: false in a docusaurus website #9546

Answered by Josh-Cena
chengtie asked this question in Q&A
Discussion options

You must be logged in to vote

You can't just set trailingSlash to anything and expect things to work—you have to make sure your server is properly set up to handle that route. This config is exactly invented to mirror your server's capabilities. If it works with trailingSlash: true but not false, it means you should use trailingSlash: true, unless you really want to make the other work ;)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@chengtie
Comment options

Answer selected by chengtie
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants