Validate baseURL #2978
Labels
bug
An error in the Docusaurus core causing instability or issues with its execution
mlh
Major League Hacking Fellowship
status: claimed
Issue has been claimed by a contributor who plans to work on it.
🐛 Bug Report
Using baseUrl without a trailing slash lead to site that does not really work.
Have you read the Contributing Guidelines on issues?
yes
To Reproduce
D2 website with
baseUrl: '/build'
It builds but the site does not work once hosted (try to modify
yarn serve:v2
script), due to expecting a trailing /Expected behavior
Should work (normalized to a trailing /), or throw config validation error (requiring user to provide a trailing /)
Actual Behavior
Broken site
@anshulrgoyal as it's related to the validation maybe you could do this later
The text was updated successfully, but these errors were encountered: