Skip to content

feat: --[no]-trailing-slash CLI flags#806

Open
andybarron wants to merge 2 commits intovercel:mainfrom
andybarron:trailing-slash
Open

feat: --[no]-trailing-slash CLI flags#806
andybarron wants to merge 2 commits intovercel:mainfrom
andybarron:trailing-slash

Conversation

@andybarron
Copy link

Changes

  • Add --trailing-slash and --no-trailing-slash CLI flags, which correlate to "trailingSlash": true and "trailingSlash": false in serve.json.
  • Update affected tests.
  • Add tests for new CLI flags.

Rationale

I ran into #628 while using serve to view Jest coverage reports. I was able to bypass the issue using serve.json, but I needed to put it outside the coverage/ directory (which is in .gitignore) and use the -c flag to link it. Felt like overkill for a pretty simple flag, so I added it to the CLI!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants