Skip to content

Commit 9bc6121

Browse files
committed
feat: add Vercel Analytics and Speed Insights
1 parent 529832a commit 9bc6121

3 files changed

Lines changed: 13 additions & 0 deletions

File tree

bun.lock

Lines changed: 6 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: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
"preview": "astro preview"
99
},
1010
"dependencies": {
11+
"@vercel/analytics": "^1.6.1",
12+
"@vercel/speed-insights": "^1.3.1",
1113
"astro": "^5.1.1"
1214
}
1315
}

src/layouts/Layout.astro

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
---
2+
import Analytics from '@vercel/analytics/astro';
3+
import SpeedInsights from '@vercel/speed-insights/astro';
4+
25
interface Props {
36
title: string;
47
description?: string;
@@ -99,5 +102,7 @@ const { title, description = "ClawdBot — Your personal AI assistant, running o
99102
</head>
100103
<body>
101104
<slot />
105+
<Analytics />
106+
<SpeedInsights />
102107
</body>
103108
</html>

0 commit comments

Comments
 (0)