Skip to content

Commit f490ab1

Browse files
committed
Add analytics
1 parent 09198f2 commit f490ab1

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

apps/ratelimit/app/layout.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import type { Metadata } from "next";
22
import { Geist, Geist_Mono } from "next/font/google";
33
import "./globals.css";
4+
import { Analytics } from "@vercel/analytics/next";
45
import { NuqsAdapter } from "nuqs/adapters/next/app";
56

67
const geistSans = Geist({
@@ -27,6 +28,7 @@ export default function RootLayout({
2728
<html lang="en">
2829
<body className={`${geistSans.variable} ${geistMono.variable} antialiased`}>
2930
<NuqsAdapter>{children}</NuqsAdapter>
31+
<Analytics />
3032
</body>
3133
</html>
3234
);

apps/ratelimit/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"@unkey/ratelimit": "^2.1.0",
1717
"@upstash/ratelimit": "^2.0.5",
1818
"@upstash/redis": "^1.35.1",
19+
"@vercel/analytics": "^1.5.0",
1920
"class-variance-authority": "^0.7.0",
2021
"clsx": "^2.1.1",
2122
"lucide-react": "^0.378.0",

pnpm-lock.yaml

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

0 commit comments

Comments
 (0)