Skip to content

Commit 7317a8a

Browse files
committed
feat: add SpeedInsights
1 parent f9da9e7 commit 7317a8a

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
},
1717
"dependencies": {
1818
"@gsap/react": "^2.1.1",
19+
"@vercel/speed-insights": "^1.1.0",
1920
"animate.css": "^4.1.1",
2021
"clsx": "^2.1.1",
2122
"gsap": "^3.12.5",

src/app/layout.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { PERSONAL_DATA } from '@/data';
66
import { textFont } from '@/app/fonts';
77
import { ToastContainer } from 'react-toastify';
88
import { Header } from '@/layout/components/header';
9+
import { SpeedInsights } from '@vercel/speed-insights/next';
910
import { CustomCursor } from '@/shared/components/custom-cursor';
1011

1112
import 'animate.css';
@@ -58,6 +59,7 @@ export default function RootLayout({
5859
<Header />
5960
{children}
6061

62+
<SpeedInsights />
6163
<ToastContainer position='bottom-center' theme='colored' />
6264
<Script src='/click-spark.js' />
6365
<Script src='/service-worker.js' />

0 commit comments

Comments
 (0)