Skip to content

Commit

Permalink
added vercel speed insights
Browse files Browse the repository at this point in the history
  • Loading branch information
pranav-kural committed Jul 13, 2024
1 parent 4c167ee commit 00d619d
Show file tree
Hide file tree
Showing 3 changed files with 1,558 additions and 3,639 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"dependencies": {
"@radix-ui/react-slot": "^1.1.0",
"@vercel/analytics": "^1.3.1",
"@vercel/speed-insights": "^1.0.12",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
"lucide-react": "^0.399.0",
Expand Down
2 changes: 2 additions & 0 deletions pages/_app.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import "../styles/global.css";
import { inject } from "@vercel/analytics";
import { injectSpeedInsights } from "@vercel/speed-insights";

// This default export is required in a new `pages/_app.js` file.
export default function MyApp({ Component, pageProps }) {
// injext vercel analytics
inject();
injectSpeedInsights();
return <Component {...pageProps} />;
}
Loading

0 comments on commit 00d619d

Please sign in to comment.