From c2632a6329e3940ea5f384ffe3c21b23b0df6943 Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 10 Jan 2024 10:25:23 +0330 Subject: [PATCH] chore: add vercel analytics --- package.json | 2 ++ pages/_app.tsx | 4 ++++ yarn.lock | 17 +++++++++++++++++ 3 files changed, 23 insertions(+) diff --git a/package.json b/package.json index 8cf04f7ed3..d91ae58a55 100644 --- a/package.json +++ b/package.json @@ -42,6 +42,8 @@ "@tanstack/react-query-devtools": "^4.0.10", "@types/papaparse": "^5.3.5", "@types/react-scroll": "^1.8.4", + "@vercel/analytics": "^1.1.1", + "@vercel/speed-insights": "^1.0.2", "@web3modal/ethereum": "^2.6.2", "@web3modal/react": "^2.6.2", "bignumber.js": "^9.1.0", diff --git a/pages/_app.tsx b/pages/_app.tsx index 9d0a53c6fe..b6dff3f5b7 100644 --- a/pages/_app.tsx +++ b/pages/_app.tsx @@ -2,6 +2,8 @@ import { useColorMode, type ChakraProps } from '@chakra-ui/react'; import * as Sentry from '@sentry/react'; import { QueryClientProvider } from '@tanstack/react-query'; import { ReactQueryDevtools } from '@tanstack/react-query-devtools'; +import { Analytics } from '@vercel/analytics/react'; +import { SpeedInsights } from '@vercel/speed-insights/next'; import type { AppProps } from 'next/app'; import Head from 'next/head'; import React from 'react'; @@ -51,6 +53,8 @@ function MyApp({ Component, pageProps }: AppPropsWithLayout) { { getLayout() } + + ); diff --git a/yarn.lock b/yarn.lock index abc7b61056..5b3c4e1ea9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4935,6 +4935,18 @@ "@typescript-eslint/types" "5.60.1" eslint-visitor-keys "^3.3.0" +"@vercel/analytics@^1.1.1": + version "1.1.1" + resolved "https://registry.yarnpkg.com/@vercel/analytics/-/analytics-1.1.1.tgz#2a712378a95014a548b4f9d2ae1ea0721433908d" + integrity sha512-+NqgNmSabg3IFfxYhrWCfB/H+RCUOCR5ExRudNG2+pcRehq628DJB5e1u1xqwpLtn4pAYii4D98w7kofORAGQA== + dependencies: + server-only "^0.0.1" + +"@vercel/speed-insights@^1.0.2": + version "1.0.2" + resolved "https://registry.yarnpkg.com/@vercel/speed-insights/-/speed-insights-1.0.2.tgz#1bebf3e7c7046b6a911721233b263b69214ddb3e" + integrity sha512-y5HWeB6RmlyVYxJAMrjiDEz8qAIy2cit0fhBq+MD78WaUwQvuBnQlX4+5MuwVTWi46bV3klaRMq83u9zUy1KOg== + "@vitejs/plugin-react@^4.0.0": version "4.0.0" resolved "https://registry.yarnpkg.com/@vitejs/plugin-react/-/plugin-react-4.0.0.tgz#46d1c37c507447d10467be1c111595174555ef28" @@ -11583,6 +11595,11 @@ serialize-error@^8.1.0: dependencies: type-fest "^0.20.2" +server-only@^0.0.1: + version "0.0.1" + resolved "https://registry.yarnpkg.com/server-only/-/server-only-0.0.1.tgz#0f366bb6afb618c37c9255a314535dc412cd1c9e" + integrity sha512-qepMx2JxAa5jjfzxG79yPPq+8BuFToHd1hm7kI+Z4zAq1ftQiP7HcxMhDDItrbtwVeLg/cY2JnKnrcFkmiswNA== + set-blocking@^2.0.0, set-blocking@~2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7"