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
fix: avoid printing period after localhost URL #7499
Conversation
Happy to have a PR that ports the open-in-browser behavior to serve as well! |
Ok, I'll see if I can manage it. |
✅ [V2]Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site settings. |
⚡️ Lighthouse report for the deploy preview of this PR
|
Can we remove the period for |
Oh, sure. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense; thanks!
When you type
npm run serve
, Docusaurus will output the following text to your terminal:The next step at this point is to copy the text from the terminal, and then paste it into your browser.
However, the trailing period interferes with this, as it is not part of the URL. and makes it difficult to properly copy the intended text. Thus, this PR.
Related:
When doing
npm run start
, the page automatically opens in your browser, which is helpful.Why doesn't this behavior also apply to
npm run serve
?