Skip to content

Commit

Permalink
Add vercel/analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
healeycodes committed Nov 18, 2022
1 parent bca1caf commit a6416ca
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
15 changes: 15 additions & 0 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"@types/node": "18.11.9",
"@types/react": "18.0.25",
"@types/react-dom": "18.0.9",
"@vercel/analytics": "^0.1.5",
"eslint": "8.27.0",
"eslint-config-next": "13.0.3",
"highlight.js": "^11.6.0",
Expand Down
8 changes: 7 additions & 1 deletion pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
import '../styles/globals.css'
import type { AppProps } from 'next/app'
import { Analytics } from '@vercel/analytics/react';

export default function App({ Component, pageProps }: AppProps) {
return <Component {...pageProps} />
return (
<>
<Component {...pageProps} />
<Analytics />
</>
);
}

1 comment on commit a6416ca

@vercel
Copy link

@vercel vercel bot commented on a6416ca Nov 18, 2022

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:

codeguessr – ./

codeguessr-healeycodes.vercel.app
codeguessr.vercel.app
codeguessr-git-main-healeycodes.vercel.app

Please sign in to comment.