docusaurus
docusaurus copied to clipboard
feat(cli): add `docusaurus serve --no-clean-urls` option
This PR adds the ability to configure the cleanUrls option for the serve command, as described in issue #7991. It allows users to toggle clean URLs during local development.
Pre-flight checklist
- [x] I have read the Contributing Guidelines on pull requests.
- [x] If this is a code change: I have written unit tests and/or added dogfooding pages to fully verify the new behavior.
- [x] If this is a new API or substantial change: the PR has an accompanying issue (closes #0000) and the maintainers have approved on my working plan.
Motivation
Test Plan
Test links
Deploy preview: https://deploy-preview-10552--docusaurus-2.netlify.app/
Related issues/PRs
Fix https://github.com/facebook/docusaurus/issues/7991