Skip to content

Commit 842d849

Browse files
committed
feat: add speed analytics
1 parent ce6c672 commit 842d849

File tree

3 files changed

+33
-0
lines changed

3 files changed

+33
-0
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@
6565
"@types/marked": "^5.0.2",
6666
"@types/react-helmet": "^6.1.11",
6767
"@vercel/analytics": "^1.5.0",
68+
"@vercel/speed-insights": "^1.2.0",
6869
"class-variance-authority": "^0.7.1",
6970
"clsx": "^2.1.1",
7071
"cmdk": "^1.0.0",

pnpm-lock.yaml

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

src/App.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { Analytics } from "@vercel/analytics/react";
2+
import { SpeedInsights } from "@vercel/speed-insights/react";
23
import { Toaster } from "@/components/ui/toaster";
34
import { Toaster as Sonner } from "@/components/ui/sonner";
45
import { TooltipProvider } from "@/components/ui/tooltip";
@@ -47,6 +48,7 @@ function App() {
4748
<OfflineIndicator />
4849
</TooltipProvider>
4950
<Analytics />
51+
<SpeedInsights />
5052
</HelmetProvider>
5153
);
5254
}

0 commit comments

Comments
 (0)