Skip to content

Commit

Permalink
[feat] Add vercel page speed insights to track web performance
Browse files Browse the repository at this point in the history
  • Loading branch information
romashka-dev committed Jan 1, 2025
1 parent c4e6abe commit 47cbfe3
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { Geist, Geist_Mono } from 'next/font/google'
import './globals.css'
import { ClerkProvider } from '@clerk/nextjs'
import { Providers } from './providers'
import { SpeedInsights } from '@vercel/speed-insights/next'

const geistSans = Geist({
variable: '--font-geist-sans',
Expand Down Expand Up @@ -31,6 +32,7 @@ export default function RootLayout({
className={`${geistSans.variable} ${geistMono.variable} antialiased`}
>
<Providers>{children}</Providers>
<SpeedInsights />
</body>
</html>
</ClerkProvider>
Expand Down
36 changes: 36 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"@radix-ui/react-label": "^2.1.1",
"@radix-ui/react-select": "^2.1.4",
"@radix-ui/react-slot": "^1.1.1",
"@vercel/speed-insights": "^1.1.0",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"lucide-react": "^0.469.0",
Expand Down

0 comments on commit 47cbfe3

Please sign in to comment.