Skip to content

Commit 17ed2de

Browse files
Add Vercel Speed Insights to Next.js (#55)
2 parents a41fc87 + 7fc8693 commit 17ed2de

3 files changed

Lines changed: 38 additions & 0 deletions

File tree

package-lock.json

Lines changed: 35 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"@radix-ui/react-slot": "^1.2.3",
2020
"@radix-ui/react-toast": "^1.2.15",
2121
"@vercel/analytics": "^1.6.1",
22+
"@vercel/speed-insights": "^1.3.1",
2223
"class-variance-authority": "^0.7.1",
2324
"clsx": "^2.1.1",
2425
"gray-matter": "^4.0.3",

src/app/layout.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import type { Metadata } from "next";
22
import { Geist, Geist_Mono } from "next/font/google";
33
import "./globals.css";
44
import { Analytics } from "@vercel/analytics/next";
5+
import { SpeedInsights } from "@vercel/speed-insights/next";
56
import { Header } from "@/components/layout/header";
67
import { Footer } from "@/components/layout/footer";
78
import { SkipLinks } from "@/components/ui/skip-links";
@@ -66,6 +67,7 @@ export default function RootLayout({
6667
</div>
6768
</ThemeProvider>
6869
<Analytics />
70+
<SpeedInsights />
6971
</body>
7072
</html>
7173
);

0 commit comments

Comments
 (0)