Skip to content

Commit

Permalink
docs: add @vercel/analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
manudeli committed Oct 19, 2023
1 parent 43377de commit 7f768a1
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 42 deletions.
1 change: 1 addition & 0 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"start": "next start"
},
"dependencies": {
"@vercel/analytics": "^1.1.1",
"next": "13.5.4",
"nextra": "^2.13.2",
"nextra-theme-docs": "^2.13.2",
Expand Down
10 changes: 8 additions & 2 deletions docs/src/pages/_app.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
import '../styles/globals.css'
import { Analytics } from '@vercel/analytics/react'

export default function App({ Component, pageProps }) {
return <Component {...pageProps} />
}
return (
<>
<Component {...pageProps} />
<Analytics />
</>
)
}
57 changes: 17 additions & 40 deletions pnpm-lock.yaml

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

0 comments on commit 7f768a1

Please sign in to comment.