Skip to content
This repository has been archived by the owner on Jan 2, 2025. It is now read-only.

Commit

Permalink
feat: add vercel speed insights
Browse files Browse the repository at this point in the history
  • Loading branch information
mongj committed Dec 18, 2023
1 parent 1595b78 commit 7d993ac
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"@types/react": "18.0.35",
"@types/react-dom": "18.0.11",
"@vercel/analytics": "^1.1.1",
"@vercel/speed-insights": "^1.0.2",
"autoprefixer": "10.4.14",
"axios": "^1.3.6",
"eslint-config-next": "13.3.0",
Expand Down
2 changes: 2 additions & 0 deletions src/pages/_document.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Analytics } from '@vercel/analytics/react';
import { SpeedInsights } from '@vercel/speed-insights/next';
import { Head, Html, Main, NextScript } from 'next/document';

import ChakraProviders from '../providers/chakra';
Expand All @@ -12,6 +13,7 @@ export default function Document() {
<Main />
<NextScript />
<Analytics />
<SpeedInsights />
</ChakraProviders>
</body>
</Html>
Expand Down

0 comments on commit 7d993ac

Please sign in to comment.