Skip to content
Permalink
Browse files

fix: hostname initialization

fix #60
  • Loading branch information...
NicoPennec committed May 1, 2019
1 parent e6b6bf7 commit 56fdddd9022aa77f783d082a06ba16ca455fc95c
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/module.js
@@ -9,10 +9,12 @@ const consola = require('consola')
const { promisify } = require('util')
const { hostname } = require('os')

const defaultPublicPath = '/_nuxt/'

module.exports = function module (moduleOptions) {
const defaults = {
path: 'sitemap.xml',
hostname: this.options.build.publicPath || undefined,
hostname: this.options.build.publicPath !== defaultPublicPath ? this.options.build.publicPath : undefined,
exclude: [],
routes: this.options.generate.routes || [],
cacheTime: 1000 * 60 * 15,

0 comments on commit 56fdddd

Please sign in to comment.
You can’t perform that action at this time.