Skip to content

Commit

Permalink
chore: Add vercel speed insights.
Browse files Browse the repository at this point in the history
  • Loading branch information
brunomenezes committed May 7, 2024
1 parent a386d92 commit bfcef98
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"@react-spring/web": "^9.7.3",
"@tanstack/react-query": "^5.27.5",
"@vercel/analytics": "^1.2.2",
"@vercel/speed-insights": "^1.0.10",
"abitype": "^0.9",
"encoding": "^0.1",
"graphql": "^16",
Expand Down
2 changes: 2 additions & 0 deletions apps/web/src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import "@mantine/core/styles.css";
import { Notifications } from "@mantine/notifications";
import "@mantine/notifications/styles.css";
import { Analytics } from "@vercel/analytics/react";
import { SpeedInsights } from "@vercel/speed-insights/next";
import { Metadata } from "next";
import dynamic from "next/dynamic";
import type { FC, ReactNode } from "react";
Expand Down Expand Up @@ -41,6 +42,7 @@ const Layout: FC<LayoutProps> = ({ children }) => {
</>
</Providers>
<Analytics />
<SpeedInsights />
</body>
</html>
);
Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5051,6 +5051,11 @@
dependencies:
server-only "^0.0.1"

"@vercel/speed-insights@^1.0.10":
version "1.0.10"
resolved "https://registry.yarnpkg.com/@vercel/speed-insights/-/speed-insights-1.0.10.tgz#2e2e6a16beff72cbb58fd59ea8deb18f7338a014"
integrity sha512-4uzdKB0RW6Ff2FkzshzjZ+RlJfLPxgm/00i0XXgxfMPhwnnsk92YgtqsxT9OcPLdJUyVU1DqFlSWWjIQMPkh0g==

"@vitejs/plugin-react@^4.0.3", "@vitejs/plugin-react@^4.1.0":
version "4.2.1"
resolved "https://registry.yarnpkg.com/@vitejs/plugin-react/-/plugin-react-4.2.1.tgz#744d8e4fcb120fc3dbaa471dadd3483f5a304bb9"
Expand Down

0 comments on commit bfcef98

Please sign in to comment.