fix: set default host

master
Sébastien Chopin 2020-07-14 13:01:11 +02:00
parent bc6633f39a
commit 18e9b11c39
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ function httpModule (_moduleOptions) {
// For static exporting
if (nuxt.options.target === 'static') {
nuxt.hook('listen', (_, { host, port }) => {
nuxt.hook('listen', (_, { host = 'localhost', port }) => {
publicRuntimeConfig.http.browserBaseURL = toHttps(publicRuntimeConfig.http.browserBaseURL || prefix || '/')
privateRuntimeConfig.http.baseURL = toHttps(privateRuntimeConfig.http.baseURL || `http://${host}:${port}${prefix}`)
})