Skip to content

Commit

Permalink
add vercel analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
nandereck committed Aug 16, 2023
1 parent 0c9f723 commit c3b49c1
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 14 deletions.
24 changes: 15 additions & 9 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"@hashicorp/mktg-logos": "^1.3.2",
"@hashicorp/sentinel-embedded": "^0.0.14",
"@swc/wasm-web": "^1.3.21",
"@vercel/analytics": "^1.0.2",
"classnames": "^2.3.1",
"copy-to-clipboard": "^3.3.1",
"formik": "^2.2.9",
Expand Down
14 changes: 9 additions & 5 deletions pages/_app.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,18 @@

import './global.css'
import { TabProvider } from '../packages/tabs'
import { Analytics } from '@vercel/analytics/react'
import MotionConfig from '../packages/motion-config'

export default function MyApp({ Component, pageProps }) {
return (
<MotionConfig>
<TabProvider>
<Component {...pageProps} />
</TabProvider>
</MotionConfig>
<>
<Analytics />
<MotionConfig>
<TabProvider>
<Component {...pageProps} />
</TabProvider>
</MotionConfig>
</>
)
}

0 comments on commit c3b49c1

Please sign in to comment.