Skip to content

Commit 4490f5a

Browse files
committed
feat: analytics
1 parent 091025c commit 4490f5a

File tree

3 files changed

+29
-0
lines changed

3 files changed

+29
-0
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"@types/chroma-js": "^2.4.4",
2626
"@types/pngjs": "^6.0.5",
2727
"@types/prettier": "^3.0.0",
28+
"@vercel/analytics": "^1.3.2",
2829
"chroma-js": "^3.1.2",
2930
"clsx": "^2.1.1",
3031
"colorjs.io": "^0.5.2",

pnpm-lock.yaml

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

src/components/providers/root/index.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import { PropsWithChildren } from 'react';
44
import { ThemeProvider } from 'next-themes';
55
import { LazyMotion } from 'framer-motion';
6+
import { Analytics } from '@vercel/analytics/react';
67

78
import ProviderComposer from '@/components/modules/shared/ProviderComposer';
89

@@ -11,6 +12,7 @@ const loadFeatures = () => import('./framer-lazy-feature').then((res) => res.def
1112
const webAppContexts: JSX.Element[] = [
1213
<ThemeProvider children key="themeProvider" />,
1314
<LazyMotion features={loadFeatures} strict key="framer" />,
15+
<Analytics />,
1416
];
1517

1618
export default function WebAppProviders({ children }: PropsWithChildren) {

0 commit comments

Comments
 (0)