diff --git a/package-lock.json b/package-lock.json index 79c56879..7e7aa628 100644 --- a/package-lock.json +++ b/package-lock.json @@ -26,6 +26,7 @@ "@tiptap/react": "^2.1.13", "@tiptap/starter-kit": "^2.1.13", "@tiptap/suggestion": "^2.1.13", + "@vercel/analytics": "^1.1.1", "browser-image-compression": "^2.0.2", "emoji-mart": "^5.5.2", "jwt-decode": "^4.0.0", @@ -1978,6 +1979,14 @@ "integrity": "sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==", "dev": true }, + "node_modules/@vercel/analytics": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@vercel/analytics/-/analytics-1.1.1.tgz", + "integrity": "sha512-+NqgNmSabg3IFfxYhrWCfB/H+RCUOCR5ExRudNG2+pcRehq628DJB5e1u1xqwpLtn4pAYii4D98w7kofORAGQA==", + "dependencies": { + "server-only": "^0.0.1" + } + }, "node_modules/acorn": { "version": "8.11.2", "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.2.tgz", @@ -5673,6 +5682,11 @@ "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==" + }, "node_modules/set-function-length": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.1.1.tgz", diff --git a/package.json b/package.json index dd55d426..b723eace 100644 --- a/package.json +++ b/package.json @@ -27,6 +27,7 @@ "@tiptap/react": "^2.1.13", "@tiptap/starter-kit": "^2.1.13", "@tiptap/suggestion": "^2.1.13", + "@vercel/analytics": "^1.1.1", "browser-image-compression": "^2.0.2", "emoji-mart": "^5.5.2", "jwt-decode": "^4.0.0", diff --git a/src/app/layout.tsx b/src/app/layout.tsx index c252254a..d8458908 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -1,4 +1,5 @@ import type { Metadata } from "next"; +import { Analytics } from "@vercel/analytics/react"; import { Inter } from "next/font/google"; import "../styles/globals.css"; import SessionProvider from "./providers/session"; @@ -26,10 +27,13 @@ export default async function RootLayout({ - {children} + + {children} + + );