Skip to content

Commit

Permalink
Add @vercel/analytics and @vercel/speed-insights
Browse files Browse the repository at this point in the history
packages
  • Loading branch information
dishant0406 committed Dec 26, 2023
1 parent fb11429 commit f681b29
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
2 changes: 2 additions & 0 deletions lazyweb/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
5 changes: 4 additions & 1 deletion lazyweb/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@ 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'
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()
Expand Down Expand Up @@ -79,6 +80,8 @@ export default function App({ Component, pageProps }: AppProps) {
</NextUIProvider>
<ToastContainer theme='dark' hideProgressBar={true} closeButton={false} pauseOnHover={false} />
</TourProvider>
<SpeedInsights/>
<Analytics/>
</>
)
}
Expand Down
17 changes: 17 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down

1 comment on commit f681b29

@vercel
Copy link

@vercel vercel bot commented on f681b29 Dec 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.