diff --git a/src/client/app/index.ts b/src/client/app/index.ts index 7fcfc53a..50158d61 100644 --- a/src/client/app/index.ts +++ b/src/client/app/index.ts @@ -16,7 +16,7 @@ import { dataSymbol, initData } from './data' import { Content } from './components/Content' import { ClientOnly } from './components/ClientOnly' -const NotFound = Theme.NotFound || (() => '404 Not Found') +export const NotFound = Theme.NotFound || (() => '404 Not Found') const VitePressApp = { name: 'VitePressApp', diff --git a/src/client/theme-default/components/VPContent.vue b/src/client/theme-default/components/VPContent.vue index dddf39ca..f0a04e1a 100644 --- a/src/client/theme-default/components/VPContent.vue +++ b/src/client/theme-default/components/VPContent.vue @@ -2,7 +2,7 @@ import { useRoute, useData } from 'vitepress' import { useCopyCode } from '../composables/copy-code' import { useSidebar } from '../composables/sidebar' -import NotFound from '../NotFound.vue' +import { NotFound } from '../../app' import VPPage from './VPPage.vue' import VPHome from './VPHome.vue' import VPDoc from './VPDoc.vue'