Skip to content

Commit

Permalink
adds vercel analytics (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
mathewmorris authored Jul 22, 2024
1 parent cca3365 commit 5b19015
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 1 deletion.
27 changes: 26 additions & 1 deletion 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 @@ -26,6 +26,7 @@
"@trpc/next": "^10.34.0",
"@trpc/react-query": "^10.34.0",
"@trpc/server": "^10.34.0",
"@vercel/analytics": "^1.3.1",
"next": "^13.4.13",
"next-auth": "^4.22.4",
"next-axiom": "^1.0.0",
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 Link from "next/link";
import Head from "next/head";
import Image from "next/image";
import { Analytics } from "@vercel/analytics/react";

import { api } from "~/utils/api";
import "~/styles/globals.css";
Expand Down Expand Up @@ -41,6 +42,7 @@ const MagicVault: AppType<{ session: Session | null }> = ({
</div>
</nav>
<Component {...pageProps} />
<Analytics />
</main>
</SessionProvider>
);
Expand Down

0 comments on commit 5b19015

Please sign in to comment.