Skip to content

Commit

Permalink
✨ (package.json, index.tsx): add @vercel/speed-insights package (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
romantech authored Jan 20, 2025
1 parent db936bc commit 9246103
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 3 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
"@tsparticles/preset-links": "^3.1.0",
"@tsparticles/react": "^3.0.0",
"@vercel/analytics": "^1.3.1",
"@vercel/speed-insights": "^1.1.0",
"axios": "^1.7.4",
"clsx": "^2.1.1",
"date-fns": "^3.6.0",
Expand Down
37 changes: 34 additions & 3 deletions pnpm-lock.yaml

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

2 changes: 2 additions & 0 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { createRoot } from 'react-dom/client';
import { ChakraProvider, ColorModeScript } from '@chakra-ui/react';
import { ReactQueryDevtools } from '@tanstack/react-query-devtools';
import { Analytics } from '@vercel/analytics/react';
import { SpeedInsights } from '@vercel/speed-insights/react';
import { RouterProvider } from 'react-router-dom';

import { ConfiguredQueryProvider } from '@/lib';
Expand All @@ -15,6 +16,7 @@ const rootElement = document.getElementById('root');
createRoot(rootElement!).render(
<StrictMode>
<Analytics />
<SpeedInsights />
<ChakraProvider theme={theme} toastOptions={toastOptions}>
<ColorModeScript initialColorMode={theme.config.initialColorMode} />
<ConfiguredQueryProvider>
Expand Down

0 comments on commit 9246103

Please sign in to comment.