Skip to content

Commit

Permalink
feat(Performance): add vercel performance monitoring
Browse files Browse the repository at this point in the history
  • Loading branch information
emiliosheinz committed Dec 8, 2023
1 parent 0442dd9 commit ad80ed2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"@types/react": "18.2.20",
"@types/react-dom": "18.2.7",
"@vercel/analytics": "^1.0.2",
"@vercel/speed-insights": "^1.0.0",
"autoprefixer": "10.4.15",
"contentlayer": "^0.3.4",
"date-fns": "^2.30.0",
Expand Down
7 changes: 5 additions & 2 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import './globals.css'

import { Analytics } from '@vercel/analytics/react'
import type { Metadata } from 'next'
import { SpeedInsights } from '@vercel/speed-insights/next'
import { Analytics } from '@vercel/analytics/react'
import { Toaster } from 'react-hot-toast'

import { Roboto_Mono } from 'next/font/google'
import { Header } from '~/components/header'
import { classNames } from '~/utils/css.utils'
import { Toaster } from 'react-hot-toast'

const robotoMono = Roboto_Mono({
subsets: ['latin'],
Expand Down Expand Up @@ -80,6 +82,7 @@ export default function RootLayout({ children }: RootLayoutProps) {
{children}
<CustomToaster />
<Analytics />
<SpeedInsights />
</body>
</html>
)
Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1580,6 +1580,11 @@
resolved "https://registry.yarnpkg.com/@vercel/analytics/-/analytics-1.0.2.tgz#7af719a1bf33734840aee6f04eb548d2cedab9ec"
integrity sha512-BZFxVrv24VbNNl5xMxqUojQIegEeXMI6rX3rg1uVLYUEXsuKNBSAEQf4BWEcjQDp/8aYJOj6m8V4PUA3x/cxgg==

"@vercel/speed-insights@^1.0.0":
version "1.0.0"
resolved "https://registry.yarnpkg.com/@vercel/speed-insights/-/speed-insights-1.0.0.tgz#53edf7d3a510f159038f0709fc3a79de2cea30c1"
integrity sha512-5blmCVGGPn+3BqwBPb1jc3OnzRozNuLgJVr7xH6XjxCTvocs7z/Bml7lo+JzLKUXR1Q35qI/PlEllmNbZmP9Ew==

abab@^2.0.6:
version "2.0.6"
resolved "https://registry.yarnpkg.com/abab/-/abab-2.0.6.tgz#41b80f2c871d19686216b82309231cfd3cb3d291"
Expand Down

0 comments on commit ad80ed2

Please sign in to comment.