mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
open ~> ready
be more precicse about which ip address is nuxt listening by.
This commit is contained in:
parent
6394639091
commit
85d6c5758a
@ -126,13 +126,12 @@ export default class Nuxt {
|
|||||||
return reject(err)
|
return reject(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
const _host = host === '0.0.0.0' ? 'localhost' : host
|
|
||||||
if (!this.options.test) {
|
if (!this.options.test) {
|
||||||
// eslint-disable-next-line no-console
|
// eslint-disable-next-line no-console
|
||||||
console.log(
|
console.log(
|
||||||
'\n' +
|
'\n' +
|
||||||
chalk.bgGreen.black(' OPEN ') +
|
chalk.bgGreen.black(' READY ') +
|
||||||
chalk.green(` http://${_host}:${port}\n`)
|
chalk.green(` Listening on ${host}:${port}\n`)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user