Skip to content

Commit

Permalink
fix(config): customizing host and port
Browse files Browse the repository at this point in the history
  • Loading branch information
hjvedvik committed Jan 3, 2019
1 parent c813d70 commit bc44a64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gridsome/lib/app/loadConfig.js
Expand Up @@ -52,8 +52,8 @@ module.exports = (context, options = {}, pkg = {}) => {
const assetsDir = localConfig.assetsDir || 'assets'

config.pkg = options.pkg || resolvePkg(context)
config.host = args.host || 'localhost'
config.port = parseInt(args.port, 10) || 8080
config.host = args.host || options.host || 'localhost'
config.port = parseInt(args.port || options.port, 10) || 8080
config.plugins = normalizePlugins(context, plugins)
config.chainWebpack = localConfig.chainWebpack
config.transformers = resolveTransformers(config.pkg, localConfig)
Expand Down

0 comments on commit bc44a64

Please sign in to comment.