Skip to content
This repository has been archived by the owner on Dec 24, 2024. It is now read-only.

Commit

Permalink
chore: add vercel SpeedInsights
Browse files Browse the repository at this point in the history
  • Loading branch information
agustinusnathaniel committed Dec 12, 2023
1 parent 2fbcb71 commit c47f4d8
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"@giscus/react": "^2.3.0",
"@prisma/client": "^5.5.2",
"@t3-oss/env-nextjs": "^0.7.1",
"@vercel/speed-insights": "^1.0.1",
"cmdk": "^0.2.0",
"contentlayer": "^0.3.4",
"date-fns": "^2.30.0",
Expand Down
10 changes: 10 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { SpeedInsights } from '@vercel/speed-insights/next';
import type { Metadata, Viewport } from 'next';
import Script from 'next/script';
import NextTopLoader from 'nextjs-toploader';
Expand Down Expand Up @@ -89,6 +90,7 @@ const RootLayout = ({ children }: RootLayoutProps) => {
src={env.NEXT_PUBLIC_UMAMI_SRC}
data-domains="sznm.dev"
/>
<SpeedInsights />
</body>
</html>
);
Expand Down

1 comment on commit c47f4d8

@vercel
Copy link

@vercel vercel bot commented on c47f4d8 Dec 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.