12 lines
411 B
TypeScript
12 lines
411 B
TypeScript
import Layout from './Layout.vue'
|
|
import { type EnhanceAppContext } from 'vitepress'
|
|
|
|
export default {
|
|
Layout,
|
|
NotFound: () => 'custom 404', // <- this is a Vue 3 functional component
|
|
enhanceApp({ app, router, siteData }: EnhanceAppContext) {
|
|
// app is the Vue 3 app instance from `createApp()`. router is VitePress'
|
|
// custom router. `siteData`` is a `ref`` of current site-level metadata.
|
|
}
|
|
}
|