Skip to content

Commit

Permalink
feat: adds vercel analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
ixahmedxi committed Jun 25, 2023
1 parent 3dd68f3 commit 93f9ce5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"@trpc/next": "^10.32.0",
"@trpc/react-query": "^10.32.0",
"@trpc/server": "^10.32.0",
"@vercel/analytics": "^1.0.1",
"next": "13.4.7",
"next-themes": "^0.2.1",
"react": "18.2.0",
Expand Down
2 changes: 2 additions & 0 deletions apps/web/src/pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { Analytics } from '@vercel/analytics/react';
import { ThemeProvider } from 'next-themes';
import { type AppProps } from 'next/app';

Expand All @@ -9,6 +10,7 @@ const App = ({ Component, pageProps }: AppProps) => {
return (
<ThemeProvider attribute="class">
<Component {...pageProps} />
<Analytics />
</ThemeProvider>
);
};
Expand Down
7 changes: 7 additions & 0 deletions pnpm-lock.yaml

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

0 comments on commit 93f9ce5

Please sign in to comment.