Skip to content

Commit a534775

Browse files
monash-codingedwnl
andauthored
add speed insights (#102)
Co-authored-by: Ed <[email protected]>
1 parent 08da252 commit a534775

File tree

3 files changed

+39
-0
lines changed

3 files changed

+39
-0
lines changed

frontend/package-lock.json

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

frontend/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"@tabler/icons-react": "^3.30.0",
1717
"@tailwindcss/typography": "^0.5.16",
1818
"@vercel/analytics": "^1.5.0",
19+
"@vercel/speed-insights": "^1.2.0",
1920
"dompurify": "^3.2.3",
2021
"isomorphic-dompurify": "^2.22.0",
2122
"jsdom": "^26.0.0",

frontend/src/app/layout.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import "@mantine/core/styles.css";
44
import "./globals.css";
55
import { Analytics } from "@vercel/analytics/react";
6+
import { SpeedInsights } from "@vercel/speed-insights/next";
67

78
import NavBar from "@/components/layout/nav-bar";
89
import { MantineProvider } from "@mantine/core";
@@ -43,6 +44,7 @@ export default function RootLayout({ children }: PropsWithChildren) {
4344
<main className="">
4445
{children}
4546
<Analytics />
47+
<SpeedInsights />
4648
</main>
4749
</div>
4850
</FilterProvider>

0 commit comments

Comments
 (0)