Skip to content

Commit 137ffbb

Browse files
committed
Install vercel analytics
1 parent 4cb4d0f commit 137ffbb

File tree

3 files changed

+37
-6
lines changed

3 files changed

+37
-6
lines changed

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"@chakra-ui/react": "^1.8.9",
1313
"@emotion/react": "^11.11.4",
1414
"@emotion/styled": "^11.11.5",
15+
"@vercel/analytics": "^1.3.1",
1516
"axios": "^1.7.2",
1617
"framer-motion": "^6.5.1",
1718
"next": "12.3.4",

pnpm-lock.yaml

+29-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/pages/_app.tsx

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
import "../styles/globals.css";
22
import type { AppProps } from "next/app";
33

4+
import { Analytics } from "@vercel/analytics/react";
45
import { ChakraProvider } from "@chakra-ui/react";
56
import theme from "@theme";
67

78
function MyApp({ Component, pageProps }: AppProps) {
89
return (
9-
<ChakraProvider theme={theme}>
10-
<Component {...pageProps} />
11-
</ChakraProvider>
10+
<>
11+
<ChakraProvider theme={theme}>
12+
<Component {...pageProps} />
13+
</ChakraProvider>
14+
<Analytics />
15+
</>
1216
);
1317
}
1418

0 commit comments

Comments
 (0)