Skip to content

Commit 635e8b7

Browse files
authored
Merge pull request #1 from vpn-cli/vercel/install-and-configure-vercel-w-kbtj3d
Install and Configure Vercel Web Analytics
2 parents 9d963c7 + 82aaa60 commit 635e8b7

3 files changed

Lines changed: 47 additions & 1 deletion

File tree

app/layout.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Metadata } from "next";
1+
import type { Metadata } from "next";
22
import { Geist, Geist_Mono } from "next/font/google";
33
import "./globals.css";
44
import { SmoothScroller } from "@/components/layout/SmoothScroller";
@@ -22,6 +22,7 @@ export const metadata: Metadata = {
2222

2323
import { ClerkProvider } from '@clerk/nextjs'
2424
import { dark } from '@clerk/themes'
25+
import { Analytics } from '@vercel/analytics/next'
2526

2627
export default function RootLayout({
2728
children,
@@ -68,6 +69,7 @@ export default function RootLayout({
6869
{children}
6970
</SmoothScroller>
7071
</ThemeProvider>
72+
<Analytics />
7173
</body>
7274
</html>
7375
</ClerkProvider>

package-lock.json

Lines changed: 43 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"@upstash/kafka": "^1.3.5",
2525
"@upstash/ratelimit": "^2.0.8",
2626
"@upstash/redis": "^1.38.0",
27+
"@vercel/analytics": "^2.0.1",
2728
"ai": "^7.0.52",
2829
"canvas-confetti": "^1.9.4",
2930
"class-variance-authority": "^0.7.1",

0 commit comments

Comments
 (0)