diff --git a/package.json b/package.json index a082e6d..9120e47 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/pages/_app.tsx b/pages/_app.tsx index 1787d47..dc86cb2 100644 --- a/pages/_app.tsx +++ b/pages/_app.tsx @@ -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) @@ -50,5 +51,10 @@ export default function App({ Component, pageProps }: AppProps) { } }, [router.events]) - return + return ( + <> + + + + ) } diff --git a/pages/_document.tsx b/pages/_document.tsx index 97a7b4c..5cb3005 100644 --- a/pages/_document.tsx +++ b/pages/_document.tsx @@ -62,7 +62,6 @@ export default class MyDocument extends Document { }} />
- diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 5e20c7b..354b120 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -17,6 +17,9 @@ dependencies: '@react-icons/all-files': specifier: ^4.1.0 version: 4.1.0(react@18.2.0) + '@vercel/analytics': + specifier: ^1.2.2 + version: 1.2.2(next@12.3.4)(react@18.2.0) '@vercel/og': specifier: ^0.0.19 version: 0.0.19 @@ -1156,6 +1159,22 @@ packages: react: 18.2.0 dev: false + /@vercel/analytics@1.2.2(next@12.3.4)(react@18.2.0): + resolution: {integrity: sha512-X0rctVWkQV1e5Y300ehVNqpOfSOufo7ieA5PIdna8yX/U7Vjz0GFsGf4qvAhxV02uQ2CVt7GYcrFfddXXK2Y4A==} + peerDependencies: + next: '>= 13' + react: ^18 || ^19 + peerDependenciesMeta: + next: + optional: true + react: + optional: true + dependencies: + next: 12.3.4(@babel/core@7.17.8)(react-dom@18.2.0)(react@18.2.0) + react: 18.2.0 + server-only: 0.0.1 + dev: false + /@vercel/og@0.0.19: resolution: {integrity: sha512-1LrPUlCoe8T+aEI1fGdvJDhwewK1/wpYlQnF+E9ERgJMFCnmWH4FA+NYBkQaJqxUUeHoutIxNZTHQFT39+I+BQ==} engines: {node: '>=16'} @@ -4649,6 +4668,10 @@ packages: randombytes: 2.1.0 dev: false + /server-only@0.0.1: + resolution: {integrity: sha512-qepMx2JxAa5jjfzxG79yPPq+8BuFToHd1hm7kI+Z4zAq1ftQiP7HcxMhDDItrbtwVeLg/cY2JnKnrcFkmiswNA==} + dev: false + /set-blocking@2.0.0: resolution: {integrity: sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==} dev: true