Skip to content

Commit

Permalink
chore: speed insights
Browse files Browse the repository at this point in the history
  • Loading branch information
stijnvanhulle committed Mar 15, 2024
1 parent c346835 commit 031e11b
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/.vitepress/theme/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// https://vitepress.dev/guide/custom-theme
import { inject } from '@vercel/analytics'
import DefaultTheme from 'vitepress/theme'
import { injectSpeedInsights } from '@vercel/speed-insights'
import { h } from 'vue'

import HomePage from './HomePage.vue'
Expand All @@ -22,6 +23,7 @@ export default {
})
},
enhanceApp(ctx: any) {
injectSpeedInsights()
DefaultTheme.enhanceApp(ctx)
},
}
1 change: 1 addition & 0 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
},
"dependencies": {
"@vercel/analytics": "^1.2.2",
"@vercel/speed-insights": "^1.0.10",
"sitemap": "^7.1.1",
"vitepress": "^1.0.0-rc.45",
"vue": "^3.4.21"
Expand Down
30 changes: 30 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 031e11b

Please sign in to comment.