Skip to content

Commit

Permalink
feat: add vercel analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
donBarbos committed Nov 15, 2023
1 parent 3d33d9e commit 6a883bc
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
],
"dependencies": {
"@svgr/webpack": "^6.5.1",
"@vercel/analytics": "^1.1.1",
"focus-visible": "^5.2.0",
"markdown-it": "^13.0.1",
"mongoose": "^6.11.3",
Expand Down
2 changes: 2 additions & 0 deletions src/pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { ThemeProvider } from 'next-themes'
import { Inter } from 'next/font/google'
import { Analytics } from '@vercel/analytics/react'

import type { AppProps } from 'next/app'
import '@styles/global.css'
Expand All @@ -16,6 +17,7 @@ const MyApp = ({ Component, pageProps }: AppProps) => {
}
`}</style>
<Component {...pageProps} />
<Analytics />
</ThemeProvider>
)
}
Expand Down
12 changes: 12 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3636,6 +3636,13 @@
"@typescript-eslint/types" "5.60.0"
eslint-visitor-keys "^3.3.0"

"@vercel/analytics@^1.1.1":
version "1.1.1"
resolved "https://registry.yarnpkg.com/@vercel/analytics/-/analytics-1.1.1.tgz#2a712378a95014a548b4f9d2ae1ea0721433908d"
integrity sha512-+NqgNmSabg3IFfxYhrWCfB/H+RCUOCR5ExRudNG2+pcRehq628DJB5e1u1xqwpLtn4pAYii4D98w7kofORAGQA==
dependencies:
server-only "^0.0.1"

"@xmldom/xmldom@^0.8.3":
version "0.8.8"
resolved "https://registry.yarnpkg.com/@xmldom/xmldom/-/xmldom-0.8.8.tgz#d0d11511cbc1de77e53342ad1546a4d487d6ea72"
Expand Down Expand Up @@ -10827,6 +10834,11 @@ serialize-javascript@^6.0.1:
dependencies:
randombytes "^2.1.0"

server-only@^0.0.1:
version "0.0.1"
resolved "https://registry.yarnpkg.com/server-only/-/server-only-0.0.1.tgz#0f366bb6afb618c37c9255a314535dc412cd1c9e"
integrity sha512-qepMx2JxAa5jjfzxG79yPPq+8BuFToHd1hm7kI+Z4zAq1ftQiP7HcxMhDDItrbtwVeLg/cY2JnKnrcFkmiswNA==

set-blocking@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7"
Expand Down

2 comments on commit 6a883bc

@donBarbos
Copy link
Owner Author

Choose a reason for hiding this comment

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

Device URL
mobile https://md-share.vercel.app

Device URL
mobile https://md-share.vercel.app/about

Device URL
mobile https://md-share.vercel.app/contact

Not what you expected? Are your scores flaky? GitHub runners could be the cause.
Try running on Foo instead

@vercel
Copy link

@vercel vercel bot commented on 6a883bc Nov 15, 2023

Choose a reason for hiding this comment

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

Please sign in to comment.