-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
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(cli): after setting server.open, the default open is inconsistent… #11974
Conversation
… with the shortcut key (vitejs#11971)
Do you mean the displayed URL in the CLI is inconsistent between runs? If there's a way to reproduce them, it would help identify where to fix. |
The server. open is set, and the displayed URL is inconsistent with the default one (shortcut key) server:{
open:'/test'
}, |
I believe that's intentional, the displayed URL shows the base path where it's being served, while |
I'm slightly leaning towards not needing one for now because when |
This can also be done, because now it will cause a visual confusion, why the shortcut key and default open are not the displayed address. |
/ecosystem-ci run |
📝 Ran ecosystem CI: Open
|
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.
Looks good to me. Running ecosystem CI just in case. Nobody should be using startServer
isRestart
but it was part of the public API.
The Astro fail seems to be a fluke, I just re-ran it. This LGTM too. |
… with the shortcut key (#11971)
Description
fix #11971
After setting server.open, the default open is inconsistent with the shortcut key,Now only the shortcut key processing has been modified
PS: Another point is that the displayed urls are also inconsistent. I don't know whether to handle them
What is the purpose of this pull request?
Before submitting the PR, please make sure you do the following
fixes #123
).