diff --git a/app/layout.js b/app/layout.js index f67a7e5a..1387b84c 100644 --- a/app/layout.js +++ b/app/layout.js @@ -3,6 +3,7 @@ import NavBar from "@/app/components/NavbarMenu"; import DocSearch from "@/app/components/DocSearch" import "./globals.css"; import "./prism-dracula.css"; +import { Analytics } from "@vercel/analytics/react" const inter = Inter({ subsets: ["latin"] }); @@ -29,6 +30,7 @@ export default function RootLayout({ children }) {
{children}
+ ); diff --git a/package-lock.json b/package-lock.json index 72bb553f..ccf38620 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16,6 +16,7 @@ "@next/mdx": "^14.2.3", "@react-types/shared": "^3.23.1", "@types/mdx": "^2.0.13", + "@vercel/analytics": "^1.3.1", "antd": "^5.18.0", "asciinema-player": "^3.7.1", "clsx": "^2.1.1", @@ -3425,6 +3426,26 @@ "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.2.0.tgz", "integrity": "sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==" }, + "node_modules/@vercel/analytics": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/@vercel/analytics/-/analytics-1.3.1.tgz", + "integrity": "sha512-xhSlYgAuJ6Q4WQGkzYTLmXwhYl39sWjoMA3nHxfkvG+WdBT25c563a7QhwwKivEOZtPJXifYHR1m2ihoisbWyA==", + "dependencies": { + "server-only": "^0.0.1" + }, + "peerDependencies": { + "next": ">= 13", + "react": "^18 || ^19" + }, + "peerDependenciesMeta": { + "next": { + "optional": true + }, + "react": { + "optional": true + } + } + }, "node_modules/@webassemblyjs/ast": { "version": "1.12.1", "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.12.1.tgz", @@ -10923,6 +10944,11 @@ "seroval": "^1.0" } }, + "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.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 b562337f..aaf085ec 100644 --- a/package.json +++ b/package.json @@ -17,6 +17,7 @@ "@next/mdx": "^14.2.3", "@react-types/shared": "^3.23.1", "@types/mdx": "^2.0.13", + "@vercel/analytics": "^1.3.1", "antd": "^5.18.0", "asciinema-player": "^3.7.1", "clsx": "^2.1.1",