Skip to content

Commit 0b89d9c

Browse files
committed
fix($core): cannot fallback to default NotFound layout correctly
1 parent 8edc6de commit 0b89d9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/@vuepress/core/lib/prepare/loadTheme.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ module.exports = async function loadTheme (theme, sourceDir, vuepressDir) {
106106

107107
// use default 404 component.
108108
if (!layoutComponentMap.NotFound || !fs.existsSync(layoutComponentMap.NotFound.path)) {
109-
layoutComponentMap['404'] = {
109+
layoutComponentMap['NotFound'] = {
110110
filename: 'Layout.vue',
111111
componentName: 'NotFound',
112112
path: path.resolve(__dirname, '../app/components/NotFound.vue'),

0 commit comments

Comments
 (0)