From 795fc48c6ea2114640489674a7e3293f2be14c74 Mon Sep 17 00:00:00 2001 From: effiecancode Date: Thu, 15 Feb 2024 23:15:46 +0300 Subject: [PATCH] vercel analytics --- app/layout.tsx | 21 +++++++++++++-------- package-lock.json | 14 ++++++++++++++ package.json | 1 + 3 files changed, 28 insertions(+), 8 deletions(-) diff --git a/app/layout.tsx b/app/layout.tsx index e540a05..b1686b8 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -1,22 +1,27 @@ -import type { Metadata } from "next" -import { Inter } from "next/font/google" -import "./globals.css" +import type { Metadata } from "next"; +import { Inter } from "next/font/google"; +import "./globals.css"; -const inter = Inter({ subsets: ["latin"] }) +import { Analytics } from "@vercel/analytics/react"; + +const inter = Inter({ subsets: ["latin"] }); export const metadata: Metadata = { title: "Track AWS r/Start Labs", description: "Keep Track Of AWS r/Start Labs", -} +}; export default function RootLayout({ children, }: Readonly<{ - children: React.ReactNode + children: React.ReactNode; }>) { return ( - {children} + + {children} + + - ) + ); } diff --git a/package-lock.json b/package-lock.json index b4f0f3a..9b5a538 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,6 +8,7 @@ "name": "aws-rstart-labs", "version": "0.1.0", "dependencies": { + "@vercel/analytics": "^1.1.4", "axios": "^1.6.7", "dotenv": "^16.4.1", "mongoose": "^8.1.1", @@ -659,6 +660,14 @@ "integrity": "sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==", "dev": true }, + "node_modules/@vercel/analytics": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/@vercel/analytics/-/analytics-1.1.4.tgz", + "integrity": "sha512-CVzw3SLcPSc31tRDLLqDGqWQCv6/ylpEZnW7AYMvtvRsO2Q8hmjBVOqvo2Ok6MZnYf262O8c86LB2K9vK1/ZbQ==", + "dependencies": { + "server-only": "^0.0.1" + } + }, "node_modules/acorn": { "version": "8.11.3", "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.3.tgz", @@ -4273,6 +4282,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.2.0", "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.0.tgz", diff --git a/package.json b/package.json index 399479b..e1a3e94 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,7 @@ "lint": "next lint" }, "dependencies": { + "@vercel/analytics": "^1.1.4", "axios": "^1.6.7", "dotenv": "^16.4.1", "mongoose": "^8.1.1",