Skip to content

Commit

Permalink
chore: Add Vercel Analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
MFarabi619 committed Jun 25, 2024
1 parent 6c94abf commit 7fb394d
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"@hookform/resolvers": "^3.4.2",
"@sanity/image-url": "^1.0.2",
"@sanity/react-loader": "^1.10.2",
"@vercel/analytics": "^1.3.1",
"clsx": "^2.1.1",
"framer-motion": "^11.1.7",
"next": "^14.2.3",
Expand Down
26 changes: 26 additions & 0 deletions pnpm-lock.yaml

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

2 changes: 2 additions & 0 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import './globals.css';

import { Analytics } from '@vercel/analytics/react';
import type { Metadata, Viewport } from 'next';
import { Open_Sans } from 'next/font/google';

Expand All @@ -25,6 +26,7 @@ export default function RootLayout({
return (
<html className="scroll-pt-20 scroll-smooth md:scroll-pt-28" lang="en">
<body className={openSans.className}>{children}</body>
<Analytics />
</html>
);
}

0 comments on commit 7fb394d

Please sign in to comment.