Skip to content

Commit

Permalink
Add Vercel Analytics to website
Browse files Browse the repository at this point in the history
  • Loading branch information
timolins committed Dec 2, 2022
1 parent bbbd747 commit 186da40
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 8 deletions.
1 change: 1 addition & 0 deletions site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"@next/mdx": "^12.2.1",
"@svgr/webpack": "^6.2.1",
"@types/prismjs": "^1.26.0",
"@vercel/analytics": "^0.1.5",
"clsx": "^1.1.1",
"next": "^12.2.1",
"next-seo": "^5.4.0",
Expand Down
3 changes: 3 additions & 0 deletions site/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import '../styles/main.css';
import * as React from 'react';
import Link from 'next/link';
import Head from 'next/head';
import { Analytics } from '@vercel/analytics/react';


import { MDXProvider } from '@mdx-js/react';
import { Code } from '../components/code';
Expand Down Expand Up @@ -35,6 +37,7 @@ function MyApp({ Component, pageProps }) {
</Head>
<MDXProvider components={components}>
<Component {...pageProps} />
<Analytics />
</MDXProvider>
</>
);
Expand Down
26 changes: 18 additions & 8 deletions site/pnpm-lock.yaml

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

0 comments on commit 186da40

Please sign in to comment.