Skip to content

Commit 28a4eab

Browse files
author
Sun Haoran
authoredMar 26, 2020
fix($core): missing 404 page (close #2248) (#2250)
1 parent 7977532 commit 28a4eab

File tree

1 file changed

+1
-1
lines changed
  • packages/@vuepress/core/lib/node/build

1 file changed

+1
-1
lines changed
 

‎packages/@vuepress/core/lib/node/build/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ module.exports = class Build extends EventEmitter {
8585

8686
// if the user does not have a custom 404.md, generate the theme's default
8787
if (!this.context.pages.some(p => p.path === '/404.html')) {
88-
this.context.addPage({ path: '/404.html' })
88+
await this.context.addPage({ path: '/404.html' })
8989
}
9090

9191
// render pages

0 commit comments

Comments
 (0)
Please sign in to comment.