From a755389c9426a7b8397e7a0a874e785b6b768eca Mon Sep 17 00:00:00 2001 From: Samet Date: Mon, 6 Mar 2023 06:49:44 +0300 Subject: [PATCH] ci: integrated vercel analytics --- app/layout.tsx | 2 ++ package-lock.json | 15 +++++++++++++++ package.json | 1 + 3 files changed, 18 insertions(+) diff --git a/app/layout.tsx b/app/layout.tsx index 969a52d..8e76651 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -1,6 +1,7 @@ "use client"; import "./globals.css"; import { SessionProvider } from "next-auth/react"; +import { Analytics } from "@vercel/analytics/react"; export default function RootLayout({ children /* , session */, @@ -16,6 +17,7 @@ export default function RootLayout({ {children} + ); diff --git a/package-lock.json b/package-lock.json index 27959c3..dd33811 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,6 +10,7 @@ "dependencies": { "@next-auth/prisma-adapter": "^1.0.5", "@prisma/client": "^4.11.0", + "@vercel/analytics": "^0.1.11", "next": "13.0.1", "next-auth": "^4.19.0", "react": "18.2.0", @@ -1224,6 +1225,14 @@ "url": "https://opencollective.com/typescript-eslint" } }, + "node_modules/@vercel/analytics": { + "version": "0.1.11", + "resolved": "https://registry.npmjs.org/@vercel/analytics/-/analytics-0.1.11.tgz", + "integrity": "sha512-mj5CPR02y0BRs1tN3oZcBNAX9a8NxsIUl9vElDPcqxnMfP0RbRc9fI9Ud7+QDg/1Izvt5uMumsr+6YsmVHcyuw==", + "peerDependencies": { + "react": "^16.8||^17||^18" + } + }, "node_modules/acorn": { "version": "8.8.2", "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz", @@ -6935,6 +6944,12 @@ "eslint-visitor-keys": "^3.3.0" } }, + "@vercel/analytics": { + "version": "0.1.11", + "resolved": "https://registry.npmjs.org/@vercel/analytics/-/analytics-0.1.11.tgz", + "integrity": "sha512-mj5CPR02y0BRs1tN3oZcBNAX9a8NxsIUl9vElDPcqxnMfP0RbRc9fI9Ud7+QDg/1Izvt5uMumsr+6YsmVHcyuw==", + "requires": {} + }, "acorn": { "version": "8.8.2", "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz", diff --git a/package.json b/package.json index e9428bb..d6cf447 100644 --- a/package.json +++ b/package.json @@ -18,6 +18,7 @@ "dependencies": { "@next-auth/prisma-adapter": "^1.0.5", "@prisma/client": "^4.11.0", + "@vercel/analytics": "^0.1.11", "next": "13.0.1", "next-auth": "^4.19.0", "react": "18.2.0",