Skip to content

Commit

Permalink
Add @vercel/speed-insights package and component
Browse files Browse the repository at this point in the history
  • Loading branch information
mnixry committed Feb 6, 2024
1 parent 337a753 commit f034d18
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
1 change: 1 addition & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"@uiw/codemirror-extensions-langs": "^4.21.21",
"@uiw/codemirror-theme-github": "^4.21.21",
"@uiw/react-codemirror": "^4.21.21",
"@vercel/speed-insights": "^1.0.9",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"shlex": "^2.1.2"
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { MantineProvider } from "@mantine/core";
import "@mantine/core/styles.css";
import { SpeedInsights } from "@vercel/speed-insights/react";

import IndexPage from "./views/IndexView";

Expand All @@ -9,6 +10,7 @@ function App() {
<MantineProvider defaultColorScheme="auto">
<IndexPage />
</MantineProvider>
{import.meta.env.VERCEL && <SpeedInsights />}
</>
);
}
Expand Down
30 changes: 30 additions & 0 deletions pnpm-lock.yaml

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

0 comments on commit f034d18

Please sign in to comment.