chore: analytics

This commit is contained in:
camera-2018
2023-08-02 02:47:49 +08:00
parent af3223b598
commit 448a9c3b39
2 changed files with 2 additions and 2 deletions

View File

@@ -8,7 +8,6 @@ import { createWriteStream } from 'node:fs'
import { resolve } from 'node:path'
import { SitemapStream } from 'sitemap'
import { fileURLToPath, URL } from 'node:url'
import { inject } from '@vercel/analytics';
const links = []
@@ -168,7 +167,6 @@ export default withMermaid({
})
},
buildEnd: async ({ outDir }) => {
inject()
const sitemap = new SitemapStream({
hostname: 'https://hdu-cs.wiki/'
})

View File

@@ -1,5 +1,6 @@
// https://vitepress.dev/guide/custom-theme
import { h, watch } from 'vue'
import { inject } from '@vercel/analytics';
// import Theme from 'vitepress/theme'
import DefaultTheme from 'vitepress/theme-without-fonts'
import Download from '../../components/Download.vue'
@@ -10,6 +11,7 @@ import './rainbow.css'
let homePageStyle = undefined
inject()
export default {
...DefaultTheme,