Skip to content

Commit

Permalink
vercel analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
saucepoint committed Dec 11, 2023
1 parent e5b419f commit 899c5f8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 3 additions & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -20,7 +21,8 @@ function App() {
}

return (
<Router basename={import.meta.env.VITE_PUBLIC_URL}>
<Router basename={import.meta.env.VITE_PUBLIC_URL}>'
<Analytics/>
<Layout>
<Routes>
{routes.map((route) => {
Expand Down

0 comments on commit 899c5f8

Please sign in to comment.