From 899c5f8edb297b6b71a070734dd3a15d70f9efe8 Mon Sep 17 00:00:00 2001 From: saucepoint Date: Mon, 11 Dec 2023 17:10:48 -0500 Subject: [PATCH] vercel analytics --- package.json | 1 + src/App.tsx | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index dbde2fb88..aa134de31 100644 --- a/package.json +++ b/package.json @@ -27,6 +27,7 @@ "not op_mini all" ], "dependencies": { + "@vercel/analytics": "^1.1.1", "highlight.js": "^11.8.0", "lodash.debounce": "^4.0.8", "react": "^18.2.0", diff --git a/src/App.tsx b/src/App.tsx index 592d5e7ee..c4afd4b02 100755 --- a/src/App.tsx +++ b/src/App.tsx @@ -5,6 +5,7 @@ import styles from "./App.module.css" import Layout from "./components/Layout" import routes from "./routes" import { getPrevNextPaths } from "./nav" +import { Analytics} from "@vercel/analytics/react"; function App() { const { state, init } = useAppContext() @@ -20,7 +21,8 @@ function App() { } return ( - + ' + {routes.map((route) => {