Skip to content

Commit a35de3f

Browse files
committed
Call done() from dev-404-page during production builds so build doesn't stall
1 parent 7fa2313 commit a35de3f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/gatsby/src/internal-plugins/dev-404-page/gatsby-node.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,7 @@ exports.createPagesStatefully = async (
2626
.watch(source)
2727
.on(`change`, () => copy())
2828
.on(`ready`, () => done())
29+
} else {
30+
done()
2931
}
3032
}

0 commit comments

Comments
 (0)