diff --git a/package-lock.json b/package-lock.json index b076b5d..bcd807e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,6 +13,7 @@ "@excalidraw/excalidraw": "^0.18.1", "@monaco-editor/react": "^4.7.0", "@supabase/supabase-js": "^2.106.2", + "@vercel/analytics": "^2.0.1", "class-variance-authority": "^0.7.1", "clsx": "^2.1.1", "lucide-react": "^1.16.0", @@ -3705,6 +3706,48 @@ "d3-transition": "^3.0.1" } }, + "node_modules/@vercel/analytics": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@vercel/analytics/-/analytics-2.0.1.tgz", + "integrity": "sha512-MTQG6V9qQrt1tsDeF+2Uoo5aPjqbVPys1xvnIftXSJYG2SrwXRHnqEvVoYID7BTruDz4lCd2Z7rM1BdkUehk2g==", + "license": "MIT", + "peerDependencies": { + "@remix-run/react": "^2", + "@sveltejs/kit": "^1 || ^2", + "next": ">= 13", + "nuxt": ">= 3", + "react": "^18 || ^19 || ^19.0.0-rc", + "svelte": ">= 4", + "vue": "^3", + "vue-router": "^4" + }, + "peerDependenciesMeta": { + "@remix-run/react": { + "optional": true + }, + "@sveltejs/kit": { + "optional": true + }, + "next": { + "optional": true + }, + "nuxt": { + "optional": true + }, + "react": { + "optional": true + }, + "svelte": { + "optional": true + }, + "vue": { + "optional": true + }, + "vue-router": { + "optional": true + } + } + }, "node_modules/acorn": { "version": "8.16.0", "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.16.0.tgz", diff --git a/package.json b/package.json index e072015..3a71b9c 100644 --- a/package.json +++ b/package.json @@ -16,6 +16,7 @@ "@excalidraw/excalidraw": "^0.18.1", "@monaco-editor/react": "^4.7.0", "@supabase/supabase-js": "^2.106.2", + "@vercel/analytics": "^2.0.1", "class-variance-authority": "^0.7.1", "clsx": "^2.1.1", "lucide-react": "^1.16.0", diff --git a/src/app/layout.tsx b/src/app/layout.tsx index e9c2030..ee05e0a 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -1,4 +1,5 @@ import { cn } from '@/lib/utils' +import { Analytics } from '@vercel/analytics/next' import type { Metadata } from 'next' import { DM_Mono, DM_Sans, Noto_Serif } from 'next/font/google' import './globals.css' @@ -57,6 +58,7 @@ export default function RootLayout({ className='flex min-h-full flex-col bg-background text-foreground selection:bg-primary/20 selection:text-primary' > {children} + )