docs: add vercel analytics

This commit is contained in:
braks
2022-11-14 22:11:29 +01:00
committed by Braks
parent d5a9ae0101
commit a2f125f1e9
6 changed files with 67 additions and 1 deletions
+2
View File
@@ -1,6 +1,7 @@
import type { Theme } from 'vitepress'
import VueAnimXyz from '@animxyz/vue3'
import DefaultTheme from 'vitepress/theme'
import { webVitals } from '../plugins/vercel-web-vitals-api'
import Layout from './layouts/default.vue'
import 'virtual:windi.css'
import '@animxyz/core'
@@ -13,6 +14,7 @@ const CustomTheme = {
Layout,
enhanceApp: ({ app }) => {
app.use(VueAnimXyz)
webVitals({ analyticsId: '__ANALYTICS_ID__', debug: true })
},
} as Theme