Skip to content

Commit

Permalink
chore: fallback for non-existing config (#13948)
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Corthouts authored and m-allanson committed May 9, 2019
1 parent 9bd7ec1 commit 2f8f170
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/gatsby/src/commands/serve.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ module.exports = async program => {
getConfigFile(program.directory, `gatsby-config`)
)

const { pathPrefix: configPathPrefix } = config
const { pathPrefix: configPathPrefix } = config || {}

const pathPrefix = prefixPaths && configPathPrefix ? configPathPrefix : `/`

Expand Down

0 comments on commit 2f8f170

Please sign in to comment.