-
-
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
feat: show more info on server start #18721
base: v5
Are you sure you want to change the base?
Conversation
@@ -158,19 +159,31 @@ export function createLogger( | |||
return logger | |||
} | |||
|
|||
export function printServerUrls( | |||
export function printServerInfo( |
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.
The name printServerInfo
might no longer represent what it does.
Do you come up with any good name?
@@ -158,19 +159,31 @@ export function createLogger( | |||
return logger | |||
} | |||
|
|||
export function printServerUrls( | |||
export function printServerInfo( |
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.
IMO, we don't have to have a dedicated shortcut to show loaded env files and it's fine to print them with other info on server start and on demand.
What do you think?
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.
we could also print them indeed, maybe a shortcut is overengineered
/** | ||
* Print server urls | ||
* Print server info | ||
*/ | ||
printUrls(): void | ||
printInfo(): void |
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.
Should I keep deprecated property in documentation?
i'm grateful for this PR, i hope it lands soon. thanks a ton @nozomuikuta |
Description
Resolves #18719
DevServer.printUrls
andPreviewServer.printUrls
.DevServer.printInfo
andPreviewServer.printInfo
mode
and loaded env file names on server startI created this PR for
v5
branch, but technically it can be applied tomain
branch too.