Skip to content

Commit fb3702a

Browse files
committed
feat: add vercel speed insights integration
Add @vercel/speed-insights package to track and analyze performance metrics
1 parent 20039da commit fb3702a

File tree

3 files changed

+31
-0
lines changed

3 files changed

+31
-0
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"dependencies": {
2626
"@astrojs/vercel": "^8.2.0",
2727
"@vercel/analytics": "^1.5.0",
28+
"@vercel/speed-insights": "^1.2.0",
2829
"astro": "^5.10.1",
2930
"sharp": "^0.34.2"
3031
},

pnpm-lock.yaml

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

src/layouts/Layout.astro

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { BRAND_NAME } from '../constants/brand';
55
import '../styles/global.css';
66
import '../styles/fonts.css';
77
import Analytics from '@vercel/analytics/astro';
8+
import SpeedInsights from '@vercel/speed-insights/astro';
89
910
interface Props {
1011
title?: string;
@@ -268,5 +269,6 @@ const {
268269
});
269270
</script>
270271
<Analytics />
272+
<SpeedInsights />
271273
</body>
272274
</html>

0 commit comments

Comments
 (0)