Skip to content

Commit

Permalink
Add Vercel speed insights
Browse files Browse the repository at this point in the history
  • Loading branch information
kubawajs committed Jan 1, 2025
1 parent bb802a9 commit 88b6f4f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/nursery-nav/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"@types/react-dom": "^18.2.19",
"@types/react-infinite-scroller": "^1.2.5",
"@types/react-leaflet": "^2.8.3",
"@vercel/speed-insights": "^1.1.0",
"@vitejs/plugin-react": "^4.3.2",
"axios": "^1.7.2",
"leaflet": "^1.9.4",
Expand Down
2 changes: 2 additions & 0 deletions src/nursery-nav/src/components/Layout/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { Outlet } from "react-router-dom";
import { Grid2 } from "@mui/material";
import { HelmetProvider } from "react-helmet-async";
import ContactUs from "../ContactUs/ContactUs";
import { SpeedInsights } from '@vercel/speed-insights/react';

export const InstitutionContext = React.createContext({
institutionIds: [] as number[],
Expand All @@ -19,6 +20,7 @@ export default function Layout() {
<InstitutionContext.Provider value={{ institutionIds, setInstitutionIds }}>
<ThemeProvider theme={theme}>
<HelmetProvider>
<SpeedInsights />
<Navigation />
<Grid2 container>
<Outlet />
Expand Down

0 comments on commit 88b6f4f

Please sign in to comment.