Skip to content

Commit 3665625

Browse files
committed
feat: Added Speed insights
1 parent fa02d80 commit 3665625

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

client/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
},
1111
"dependencies": {
1212
"@vercel/analytics": "^1.3.1",
13+
"@vercel/speed-insights": "^1.0.12",
1314
"axios": "^1.7.3",
1415
"mongoose": "^8.5.2",
1516
"next": "14.2.5",

client/src/app/layout.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { Inter, Source_Code_Pro } from "next/font/google";
33
import "./globals.css";
44
import { DataProvider } from "./context/DataContext";
55
import { Analytics } from "@vercel/analytics/react";
6+
import { SpeedInsights } from "@vercel/speed-insights/next";
67

78
const sourcecodepro = Source_Code_Pro({
89
subsets: ["latin"],
@@ -24,6 +25,7 @@ export default function RootLayout({
2425
<body className={sourcecodepro.variable}>
2526
<DataProvider>{children}</DataProvider>
2627
<Analytics />
28+
<SpeedInsights />
2729
</body>
2830
</html>
2931
);

client/yarn.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,11 @@
312312
dependencies:
313313
server-only "^0.0.1"
314314

315+
"@vercel/speed-insights@^1.0.12":
316+
version "1.0.12"
317+
resolved "https://registry.yarnpkg.com/@vercel/speed-insights/-/speed-insights-1.0.12.tgz#71c2edffdedae98d34e306d7b0a573e6816898b4"
318+
integrity sha512-ZGQ+a7bcfWJD2VYEp2R1LHvRAMyyaFBYytZXsfnbOMkeOvzGNVxUL7aVUvisIrTZjXTSsxG45DKX7yiw6nq2Jw==
319+
315320
acorn-jsx@^5.3.2:
316321
version "5.3.2"
317322
resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-5.3.2.tgz#7ed5bb55908b3b2f1bc55c6af1653bada7f07937"

0 commit comments

Comments
 (0)