Skip to content

Commit

Permalink
📈 Add Vercel Speed Insights for performance monitoring
Browse files Browse the repository at this point in the history
  • Loading branch information
ImJustLucas committed Nov 5, 2024
1 parent 6a49955 commit 8b3036c
Show file tree
Hide file tree
Showing 3 changed files with 193 additions and 115 deletions.
2 changes: 2 additions & 0 deletions app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { MobileMenuProvider } from "@/contexts/menu-mobile.context";
import ClientLayout from "./ClientLayout";

import { Analytics } from "@vercel/analytics/react";
import { SpeedInsights } from "@vercel/speed-insights/next";

const geistSans = localFont({
src: "./fonts/GeistVF.woff",
Expand Down Expand Up @@ -45,6 +46,7 @@ export default function RootLayout({
disableTransitionOnChange
>
<Analytics />
<SpeedInsights />
<h1 className="absolute top-96 opacity-0">ImJustLucas</h1>
<div className="fixed bottom-5 right-5 z-10 hover:cursor-pointer">
<Image
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"@radix-ui/react-separator": "^1.1.0",
"@radix-ui/react-slot": "^1.1.0",
"@vercel/analytics": "^1.3.2",
"@vercel/speed-insights": "^1.0.14",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
"eslint-plugin-testing-library": "^6.4.0",
Expand Down
Loading

0 comments on commit 8b3036c

Please sign in to comment.