Skip to content

Commit

Permalink
✨ Enable vercel/analytics in website (#1281)
Browse files Browse the repository at this point in the history
  • Loading branch information
carloscuesta authored Jan 17, 2023
1 parent f8ebfb2 commit 4733717
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"dev": "yarn turbo dev"
},
"devDependencies": {
"@vercel/analytics": "^0.1.8",
"husky": "^8.0.3",
"lint-staged": "^13.0.0",
"prettier": "2.8.3",
Expand Down
2 changes: 2 additions & 0 deletions packages/website/src/pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import type { AppProps } from 'next/app'
import { ThemeProvider } from 'next-themes'
import { Analytics } from '@vercel/analytics/react'

import Layout from 'src/components/Layout'
import 'src/utils/theme/theme.css'
Expand All @@ -8,6 +9,7 @@ const App = (props: AppProps) => (
<ThemeProvider>
<Layout>
<props.Component {...props.pageProps} />
<Analytics />
</Layout>
</ThemeProvider>
)
Expand Down
10 changes: 10 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2520,6 +2520,15 @@ __metadata:
languageName: node
linkType: hard

"@vercel/analytics@npm:^0.1.8":
version: 0.1.8
resolution: "@vercel/analytics@npm:0.1.8"
peerDependencies:
react: ^16.8||^17||^18
checksum: e837f66494372d557e32383e7ab7192a40da242a16d4f650f61b6e0c5ea282b2a37120ec125d3c5d5e3228c3d1957f48c93d299b4b466169e9d7a853a8014c3a
languageName: node
linkType: hard

"abab@npm:^2.0.6":
version: 2.0.6
resolution: "abab@npm:2.0.6"
Expand Down Expand Up @@ -4811,6 +4820,7 @@ __metadata:
version: 0.0.0-use.local
resolution: "gitmoji@workspace:."
dependencies:
"@vercel/analytics": ^0.1.8
husky: ^8.0.3
lint-staged: ^13.0.0
prettier: 2.8.3
Expand Down

1 comment on commit 4733717

@vercel
Copy link

@vercel vercel bot commented on 4733717 Jan 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

gitmoji – ./

gitmoji-git-master-carloscuesta.vercel.app
gitmoji-carloscuesta.vercel.app
gitmoji.dev

Please sign in to comment.