Skip to content

Commit fd95a79

Browse files
committed
chore: show localhost for default host
1 parent 5dabe53 commit fd95a79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/dev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ module.exports = async function dev (sourceDir, cliOptions = {}) {
8383
isFirst = false
8484
console.log(
8585
`\n VuePress dev server listening at ${
86-
chalk.cyan(`http://${host}:${port}${options.publicPath}`)
86+
chalk.cyan(`http://${host === '0.0.0.0' ? 'localhost' : host}:${port}${options.publicPath}`)
8787
}\n`
8888
)
8989
} else {

0 commit comments

Comments
 (0)