diff --git a/package-lock.json b/package-lock.json index 57e2f18..6c02d0b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -19,6 +19,7 @@ "@trpc/next": "^10.45.1", "@trpc/react-query": "^10.45.1", "@trpc/server": "^10.45.1", + "@vercel/analytics": "^1.2.2", "@vercel/speed-insights": "^1.0.10", "next": "^14.1.0", "react": "18.2.0", @@ -993,6 +994,26 @@ "integrity": "sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==", "dev": true }, + "node_modules/@vercel/analytics": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/@vercel/analytics/-/analytics-1.2.2.tgz", + "integrity": "sha512-X0rctVWkQV1e5Y300ehVNqpOfSOufo7ieA5PIdna8yX/U7Vjz0GFsGf4qvAhxV02uQ2CVt7GYcrFfddXXK2Y4A==", + "dependencies": { + "server-only": "^0.0.1" + }, + "peerDependencies": { + "next": ">= 13", + "react": "^18 || ^19" + }, + "peerDependenciesMeta": { + "next": { + "optional": true + }, + "react": { + "optional": true + } + } + }, "node_modules/@vercel/speed-insights": { "version": "1.0.10", "resolved": "https://registry.npmjs.org/@vercel/speed-insights/-/speed-insights-1.0.10.tgz", @@ -4618,6 +4639,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.1", "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.1.tgz", diff --git a/package.json b/package.json index 13e3c5e..814d38a 100644 --- a/package.json +++ b/package.json @@ -25,6 +25,7 @@ "@trpc/next": "^10.45.1", "@trpc/react-query": "^10.45.1", "@trpc/server": "^10.45.1", + "@vercel/analytics": "^1.2.2", "@vercel/speed-insights": "^1.0.10", "next": "^14.1.0", "react": "18.2.0", diff --git a/src/pages/_app.tsx b/src/pages/_app.tsx index 7c9dfc7..5563fc7 100644 --- a/src/pages/_app.tsx +++ b/src/pages/_app.tsx @@ -1,6 +1,7 @@ import { type AppType } from "next/app"; import { Inter } from "next/font/google"; import { SpeedInsights } from "@vercel/speed-insights/next"; +import { Analytics } from "@vercel/analytics/react" import { api } from "~/utils/api"; @@ -20,6 +21,7 @@ const MyApp: AppType = ({ Component, pageProps }) => {
+ );