mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-06 21:10:38 +00:00
fix: use correct config for server host and port
This commit is contained in:
parent
0dff1b8fe9
commit
3b4b8640b8
@ -68,9 +68,6 @@ function startDev(oldInstance) {
|
||||
return onError(err, oldInstance)
|
||||
}
|
||||
|
||||
// Get latest environment variables
|
||||
const { port, host } = options.server
|
||||
|
||||
// Create nuxt and builder instance
|
||||
let nuxt
|
||||
let builder
|
||||
@ -94,6 +91,9 @@ function startDev(oldInstance) {
|
||||
hooked = true
|
||||
}
|
||||
|
||||
// Get latest environment variables
|
||||
const { port, host } = options.server
|
||||
|
||||
return (
|
||||
Promise.resolve()
|
||||
.then(() => {
|
||||
|
@ -76,7 +76,7 @@ if (nuxt.options.render.ssr === true) {
|
||||
}
|
||||
}
|
||||
|
||||
const { port, host } = options.server
|
||||
const { port, host } = nuxt.options.server
|
||||
|
||||
nuxt.listen(port, host).then(() => {
|
||||
nuxt.showReady(false)
|
||||
|
Loading…
Reference in New Issue
Block a user