From 7e6f04494e8c18e9b28cfc784d8c0a4c2ad052c3 Mon Sep 17 00:00:00 2001
From: Kripu Khadka
Date: Tue, 3 Sep 2024 11:40:47 +1000
Subject: [PATCH] @analytics component
---
app/layout.tsx | 2 ++
package-lock.json | 41 +++++++++++++++++++++++++++++++++++++++++
package.json | 1 +
3 files changed, 44 insertions(+)
diff --git a/app/layout.tsx b/app/layout.tsx
index 8c5ecc3..52503e6 100644
--- a/app/layout.tsx
+++ b/app/layout.tsx
@@ -6,6 +6,7 @@ import { SiteHeader } from "@/components/layouts/site-header";
import { siteConfig } from '@/config/site';
import SiteFooter from '../components/layouts/site-footer';
import { SpeedInsights } from "@vercel/speed-insights/next"
+import { Analytics } from "@vercel/analytics/react"
const inter = Inter({ subsets: ["latin"] });
@@ -30,6 +31,7 @@ export default function RootLayout({
+
= 13",
+ "react": "^18 || ^19"
+ },
+ "peerDependenciesMeta": {
+ "next": {
+ "optional": true
+ },
+ "react": {
+ "optional": true
+ }
+ }
+ },
"node_modules/@vercel/speed-insights": {
"version": "1.0.12",
"resolved": "https://registry.npmjs.org/@vercel/speed-insights/-/speed-insights-1.0.12.tgz",
@@ -5306,6 +5328,12 @@
"node": ">=10"
}
},
+ "node_modules/server-only": {
+ "version": "0.0.1",
+ "resolved": "https://registry.npmjs.org/server-only/-/server-only-0.0.1.tgz",
+ "integrity": "sha512-qepMx2JxAa5jjfzxG79yPPq+8BuFToHd1hm7kI+Z4zAq1ftQiP7HcxMhDDItrbtwVeLg/cY2JnKnrcFkmiswNA==",
+ "license": "MIT"
+ },
"node_modules/set-function-length": {
"version": "1.2.2",
"resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz",
@@ -7084,6 +7112,14 @@
"eslint-visitor-keys": "^3.3.0"
}
},
+ "@vercel/analytics": {
+ "version": "1.3.1",
+ "resolved": "https://registry.npmjs.org/@vercel/analytics/-/analytics-1.3.1.tgz",
+ "integrity": "sha512-xhSlYgAuJ6Q4WQGkzYTLmXwhYl39sWjoMA3nHxfkvG+WdBT25c563a7QhwwKivEOZtPJXifYHR1m2ihoisbWyA==",
+ "requires": {
+ "server-only": "^0.0.1"
+ }
+ },
"@vercel/speed-insights": {
"version": "1.0.12",
"resolved": "https://registry.npmjs.org/@vercel/speed-insights/-/speed-insights-1.0.12.tgz",
@@ -9533,6 +9569,11 @@
"lru-cache": "^6.0.0"
}
},
+ "server-only": {
+ "version": "0.0.1",
+ "resolved": "https://registry.npmjs.org/server-only/-/server-only-0.0.1.tgz",
+ "integrity": "sha512-qepMx2JxAa5jjfzxG79yPPq+8BuFToHd1hm7kI+Z4zAq1ftQiP7HcxMhDDItrbtwVeLg/cY2JnKnrcFkmiswNA=="
+ },
"set-function-length": {
"version": "1.2.2",
"resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz",
diff --git a/package.json b/package.json
index c6bbe2f..acef7e5 100644
--- a/package.json
+++ b/package.json
@@ -20,6 +20,7 @@
"@types/node": "20.4.2",
"@types/react": "18.2.15",
"@types/react-dom": "18.2.7",
+ "@vercel/analytics": "^1.3.1",
"@vercel/speed-insights": "^1.0.12",
"autoprefixer": "10.4.14",
"class-variance-authority": "^0.6.1",