diff --git a/lazyweb/package.json b/lazyweb/package.json index e86b0a8..2b39d78 100755 --- a/lazyweb/package.json +++ b/lazyweb/package.json @@ -30,6 +30,8 @@ "@types/react-resizable": "^3.0.4", "@types/react-stack-grid": "^0.7.3", "@types/svg64": "^1.1.0", + "@vercel/analytics": "^1.1.1", + "@vercel/speed-insights": "^1.0.2", "ace-builds": "^1.32.2", "allotment": "^1.19.3", "axios": "^1.2.1", diff --git a/lazyweb/pages/_app.tsx b/lazyweb/pages/_app.tsx index a31fdb7..8e69ac1 100755 --- a/lazyweb/pages/_app.tsx +++ b/lazyweb/pages/_app.tsx @@ -3,7 +3,7 @@ import 'react-spring-bottom-sheet/dist/style.css' import 'react-toastify/dist/ReactToastify.css'; import "allotment/dist/style.css"; import type { AppProps } from 'next/app' -import { NavBar } from 'components' +import { Analytics } from '@vercel/analytics/react'; import Head from 'next/head' import Favicon from 'components/utility/Favicon/Favicon' import { TourProvider, useTour } from '@reactour/tour' @@ -11,6 +11,7 @@ import { ToastContainer } from 'react-toastify' import { useUserData } from '@/hooks'; import { GoogleAnalytics } from "nextjs-google-analytics"; import {NextUIProvider} from "@nextui-org/react"; +import { SpeedInsights } from '@vercel/speed-insights/next'; export default function App({ Component, pageProps }: AppProps) { const { session } = useUserData() @@ -79,6 +80,8 @@ export default function App({ Component, pageProps }: AppProps) { + + ) } diff --git a/yarn.lock b/yarn.lock index de407cc..5748274 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3797,6 +3797,18 @@ dependencies: "@types/yargs-parser" "*" +"@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== + "@xstate/react@^1.2.0": version "1.6.3" resolved "https://registry.yarnpkg.com/@xstate/react/-/react-1.6.3.tgz#706f3beb7bc5879a78088985c8fd43b9dab7f725" @@ -6225,6 +6237,11 @@ semver@^7.3.5, semver@^7.3.7: dependencies: lru-cache "^6.0.0" +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== + shallowequal@^1.0.1, shallowequal@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/shallowequal/-/shallowequal-1.1.0.tgz#188d521de95b9087404fd4dcb68b13df0ae4e7f8"