Skip to content

Commit

Permalink
Add analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
TyHil committed Aug 20, 2024
1 parent fd0d09e commit 7269c1a
Show file tree
Hide file tree
Showing 3 changed files with 150 additions and 120 deletions.
266 changes: 146 additions & 120 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 @@ -27,6 +27,7 @@
"@trpc/client": "^11.0.0-rc.340",
"@trpc/react-query": "^11.0.0-rc.340",
"@trpc/server": "^11.0.0-rc.340",
"@vercel/analytics": "^1.3.1",
"date-fns": "^2.30.0",
"dotenv": "^16.0.3",
"drizzle-orm": "^0.28.5",
Expand Down
3 changes: 3 additions & 0 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import { TRPCReactProvider } from '@src/trpc/react';
import Sidebar from '@src/components/Sidebar';
import { type Metadata } from 'next';

import { Analytics } from '@vercel/analytics/react';

const inter = Inter({
subsets: ['latin'],
variable: '--font-inter',
Expand Down Expand Up @@ -46,6 +48,7 @@ export default function RootLayout({
<Sidebar />
<div className="max-h-screen overflow-y-scroll">{children}</div>
</TRPCReactProvider>
<Analytics />
</body>
</html>
);
Expand Down

0 comments on commit 7269c1a

Please sign in to comment.