Skip to content

Commit

Permalink
feat: add @vercel/analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
kuizuo committed Jan 17, 2024
1 parent d3523ce commit 84fce89
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,5 @@ npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-error.log*

.vercel
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"@docusaurus/theme-search-algolia": "3.1.0",
"@giscus/react": "^2.3.0",
"@popperjs/core": "^2.11.8",
"@vercel/analytics": "^1.1.1",
"dayjs": "^1.11.10",
"docusaurus-plugin-image-zoom": "^1.0.0",
"docusaurus-plugin-sass": "^0.2.5",
Expand Down
13 changes: 13 additions & 0 deletions pnpm-lock.yaml

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

12 changes: 12 additions & 0 deletions src/theme/Footer/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import React from 'react'
import Footer from '@theme-original/Footer'
import { Analytics } from '@vercel/analytics/react'

export default function FooterWrapper(props) {
return (
<>
<Footer {...props} />
<Analytics />
</>
)
}

1 comment on commit 84fce89

@vercel
Copy link

@vercel vercel bot commented on 84fce89 Jan 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

blog – ./

blog-kuizuo.vercel.app
kuizuo.cn
blog-kuizuo1.vercel.app
blog-git-main-kuizuo1.vercel.app

Please sign in to comment.