Skip to content

Commit

Permalink
Merge pull request #39 from ctbwx/analytics
Browse files Browse the repository at this point in the history
adds vercel analytics
  • Loading branch information
ctbwx authored Feb 28, 2024
2 parents 6c96320 + 3a1b965 commit 3717ede
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 2 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"@keyvhq/core": "^1.6.9",
"@keyvhq/redis": "^1.6.10",
"@react-icons/all-files": "^4.1.0",
"@vercel/analytics": "^1.2.2",
"@vercel/og": "^0.0.19",
"classnames": "^2.3.1",
"date-fns": "^2.28.0",
Expand Down
8 changes: 7 additions & 1 deletion pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import * as React from 'react'
import type { AppProps } from 'next/app'
import { useRouter } from 'next/router'
import { Analytics } from '@vercel/analytics/react'

import * as Fathom from 'fathom-client'
// used for rendering equations (optional)
Expand Down Expand Up @@ -50,5 +51,10 @@ export default function App({ Component, pageProps }: AppProps) {
}
}, [router.events])

return <Component {...pageProps} />
return (
<>
<Component {...pageProps} />
<Analytics />
</>
)
}
1 change: 0 additions & 1 deletion pages/_document.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ export default class MyDocument extends Document {
}}
/>
<Main />

<NextScript />
</body>
</Html>
Expand Down
23 changes: 23 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 3717ede

Please sign in to comment.