From 28a4eab2ce402bad97d5c76c833185a94a902fb3 Mon Sep 17 00:00:00 2001 From: Sun Haoran Date: Thu, 26 Mar 2020 10:17:42 +0800 Subject: [PATCH] fix($core): missing 404 page (close #2248) (#2250) --- packages/@vuepress/core/lib/node/build/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/@vuepress/core/lib/node/build/index.js b/packages/@vuepress/core/lib/node/build/index.js index 183d3b97b7..80afc9d7f9 100644 --- a/packages/@vuepress/core/lib/node/build/index.js +++ b/packages/@vuepress/core/lib/node/build/index.js @@ -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