fix: use correct config for server host and port

This commit is contained in:
Clark Du 2018-08-13 16:31:54 +01:00
parent 0dff1b8fe9
commit 3b4b8640b8
2 changed files with 4 additions and 4 deletions

View File

@ -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(() => {

View File

@ -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)