Skip to content

Commit

Permalink
fix($core): missing 404 page (close #2248) (#2250)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sun Haoran authored Mar 26, 2020
1 parent 7977532 commit 28a4eab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@vuepress/core/lib/node/build/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ module.exports = class Build extends EventEmitter {

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

// render pages
Expand Down

0 comments on commit 28a4eab

Please sign in to comment.