Skip to content

Commit

Permalink
feat(web): enable vercel analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
Chilfish committed Mar 10, 2024
1 parent ac1018a commit 626016e
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
1 change: 1 addition & 0 deletions apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"@types/jsdom": "^21.1.6",
"@types/node": "^20.11.24",
"@unocss/nuxt": "^0.58.5",
"@vercel/analytics": "^1.2.2",
"@vueuse/nuxt": "^10.9.0",
"@weibo-archiver/ui": "workspace:^",
"dayjs-nuxt": "^2.1.9",
Expand Down
5 changes: 5 additions & 0 deletions apps/web/src/plugins/analytics.client.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { inject } from '@vercel/analytics'

export default defineNuxtPlugin(() => {
inject()
})
23 changes: 22 additions & 1 deletion pnpm-lock.yaml

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

0 comments on commit 626016e

Please sign in to comment.