Skip to content

Commit

Permalink
🎨 Add vercel analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
adam.watkins committed Apr 9, 2023
1 parent 7339e32 commit aa6c302
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
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 @@ -21,6 +21,7 @@
"@trpc/react-query": "^10.9.0",
"@trpc/server": "^10.9.0",
"@uiball/loaders": "^1.2.6",
"@vercel/analytics": "^0.1.11",
"axios": "^1.3.5",
"clsx": "^1.2.1",
"framer-motion": "^10.11.2",
Expand Down
2 changes: 2 additions & 0 deletions src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { SessionProvider } from "next-auth/react";
import { api } from "../utils/api";

import "../styles/globals.css";
import { Analytics } from "@vercel/analytics/react";

const MyApp: AppType<{ session: Session | null }> = ({
Component,
Expand All @@ -13,6 +14,7 @@ const MyApp: AppType<{ session: Session | null }> = ({
return (
<SessionProvider session={session}>
<Component {...pageProps} />
<Analytics />
</SessionProvider>
);
};
Expand Down

0 comments on commit aa6c302

Please sign in to comment.