Skip to content

Commit 2f8f170

Browse files
Thomas Corthoutsm-allanson
Thomas Corthouts
authored andcommitted
chore: fallback for non-existing config (#13948)
1 parent 9bd7ec1 commit 2f8f170

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/gatsby/src/commands/serve.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ module.exports = async program => {
6969
getConfigFile(program.directory, `gatsby-config`)
7070
)
7171

72-
const { pathPrefix: configPathPrefix } = config
72+
const { pathPrefix: configPathPrefix } = config || {}
7373

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

0 commit comments

Comments
 (0)