Skip to content

Commit

Permalink
feat: Install vercel analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
reobin committed May 8, 2024
1 parent b7dd685 commit 0c80516
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 2 deletions.
30 changes: 28 additions & 2 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 @@ -23,6 +23,7 @@
"seed": "./database/seed"
},
"dependencies": {
"@vercel/analytics": "^1.2.2",
"classnames": "^2.5.1",
"date-fns": "^3.6.0",
"mongoose": "^8.3.1",
Expand Down
2 changes: 2 additions & 0 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { Analytics } from '@vercel/analytics/react';
import cn from 'classnames';
import type { Metadata } from 'next';
import { Source_Sans_3, Ubuntu_Mono } from 'next/font/google';
Expand Down Expand Up @@ -55,6 +56,7 @@ export default function Layout({ children }: LayoutProps) {
<body className={cn(fontStandard.variable, fontMono.variable)}>
{children}
<Footer />
<Analytics />
</body>
</html>
);
Expand Down

0 comments on commit 0c80516

Please sign in to comment.