Skip to content

Commit 964f39a

Browse files
committed
feat: add Vercel Speed Insights
- Install @vercel/speed-insights package - Import and add SpeedInsights component to App.js - Track Core Web Vitals (LCP, FID, CLS, FCP, TTFB) - Monitor real-user performance metrics - ESLint ignore comment added for module resolution
1 parent 25c4a5b commit 964f39a

4 files changed

Lines changed: 50 additions & 0 deletions

File tree

package-lock.json

Lines changed: 36 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
@@ -18,6 +18,7 @@
1818
"@cloudinary/url-gen": "^1.22.0",
1919
"@splinetool/react-spline": "^4.1.0",
2020
"@vercel/analytics": "^1.5.0",
21+
"@vercel/speed-insights": "^1.2.0",
2122
"cloudinary": "^2.8.0",
2223
"emailjs-com": "^3.2.0",
2324
"gsap": "^3.13.0",

src/App.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ import React from 'react';
22
import { Routes, Route } from 'react-router-dom';
33
// eslint-disable-next-line import/no-unresolved
44
import { Analytics } from '@vercel/analytics/react';
5+
// eslint-disable-next-line import/no-unresolved
6+
import { SpeedInsights } from '@vercel/speed-insights/react';
57
import Home from './pages/Home';
68
import About from './pages/About';
79
import Teams from './pages/Teams';
@@ -27,6 +29,7 @@ function App() {
2729
<Route path="*" element={<NotFound />} />
2830
</Routes>
2931
<Analytics />
32+
<SpeedInsights />
3033
</>
3134
);
3235
}

yarn.lock

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1723,6 +1723,11 @@
17231723
resolved "https://registry.npmjs.org/@rolldown/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.0.0-beta.35.tgz"
17241724
integrity sha512-1r1Ac/vTcm1q4kRiX/NB6qtorF95PhjdCxKH3Z5pb+bWMDZnmcz18fzFlT/3C6Qpj/ZqUF+EUrG4QEDXtVXGgg==
17251725

1726+
"@rolldown/binding-linux-x64-musl@1.0.0-beta.35":
1727+
version "1.0.0-beta.35"
1728+
resolved "https://registry.npmjs.org/@rolldown/binding-linux-x64-musl/-/binding-linux-x64-musl-1.0.0-beta.35.tgz"
1729+
integrity sha512-AFl1LnuhUBDfX2j+cE6DlVGROv4qG7GCPDhR1kJqi2+OuXGDkeEjqRvRQOFErhKz1ckkP/YakvN7JheLJ2PKHQ==
1730+
17261731
"@rolldown/pluginutils@1.0.0-beta.35":
17271732
version "1.0.0-beta.35"
17281733
resolved "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.0-beta.35.tgz"
@@ -2678,6 +2683,11 @@
26782683
resolved "https://registry.npmjs.org/@vercel/ruby/-/ruby-2.2.2.tgz"
26792684
integrity sha512-PgO3kVPPmYw914BQpgi2/NQSgaXe4xoLLdNhYuI7tJxwfZzVfYizNvhjREyoOvn96LeuB4gNS5P7nbeJjHqb/w==
26802685

2686+
"@vercel/speed-insights@^1.2.0":
2687+
version "1.2.0"
2688+
resolved "https://registry.npmjs.org/@vercel/speed-insights/-/speed-insights-1.2.0.tgz"
2689+
integrity sha512-y9GVzrUJ2xmgtQlzFP2KhVRoCglwfRQgjyfY607aU0hh0Un6d0OUyrJkjuAlsV18qR4zfoFPs/BiIj9YDS6Wzw==
2690+
26812691
"@vercel/static-build@2.8.10":
26822692
version "2.8.10"
26832693
resolved "https://registry.npmjs.org/@vercel/static-build/-/static-build-2.8.10.tgz"

0 commit comments

Comments
 (0)