Skip to content

Commit 4a6eda4

Browse files
Roman3349brc-dd
andauthored
fix(theme): fix custom NotFound component rendering (#1163)
Signed-off-by: Roman Ondráček <ondracek.roman@centrum.cz> Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
1 parent 8f80bd0 commit 4a6eda4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/client/app/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import { dataSymbol, initData } from './data'
1616
import { Content } from './components/Content'
1717
import { ClientOnly } from './components/ClientOnly'
1818

19-
const NotFound = Theme.NotFound || (() => '404 Not Found')
19+
export const NotFound = Theme.NotFound || (() => '404 Not Found')
2020

2121
const VitePressApp = {
2222
name: 'VitePressApp',

src/client/theme-default/components/VPContent.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import { useRoute, useData } from 'vitepress'
33
import { useCopyCode } from '../composables/copy-code'
44
import { useSidebar } from '../composables/sidebar'
5-
import NotFound from '../NotFound.vue'
5+
import { NotFound } from '../../app'
66
import VPPage from './VPPage.vue'
77
import VPHome from './VPHome.vue'
88
import VPDoc from './VPDoc.vue'

0 commit comments

Comments
 (0)