Skip to content

Commit eab606b

Browse files
authored
chore: add @vercel/analytics (#124)
1 parent 0b762e9 commit eab606b

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

examples/swr-devtools-demo/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"lint": "tsc --noEmit"
1010
},
1111
"dependencies": {
12+
"@vercel/analytics": "^0.1.11",
1213
"next": "^13.1.6",
1314
"react": "18.2.0",
1415
"react-dom": "18.2.0",

examples/swr-devtools-demo/pages/_app.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
import "../styles/globals.css";
22
import { SWRDevTools } from "swr-devtools";
3+
import { Analytics } from "@vercel/analytics/react";
34

45
function MyApp({ Component, pageProps }) {
56
return (
67
<SWRDevTools>
78
<Component {...pageProps} />
9+
<Analytics />
810
</SWRDevTools>
911
);
1012
}

yarn.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2010,6 +2010,11 @@
20102010
"@typescript-eslint/types" "5.38.0"
20112011
eslint-visitor-keys "^3.3.0"
20122012

2013+
"@vercel/analytics@^0.1.11":
2014+
version "0.1.11"
2015+
resolved "https://registry.yarnpkg.com/@vercel/analytics/-/analytics-0.1.11.tgz#727a0ac655a4a89104cdea3e6925476470299428"
2016+
integrity sha512-mj5CPR02y0BRs1tN3oZcBNAX9a8NxsIUl9vElDPcqxnMfP0RbRc9fI9Ud7+QDg/1Izvt5uMumsr+6YsmVHcyuw==
2017+
20132018
"@vitest/expect@0.29.3":
20142019
version "0.29.3"
20152020
resolved "https://registry.yarnpkg.com/@vitest/expect/-/expect-0.29.3.tgz#4b101ebcbaed608b20c2592cb7d833eb38e5bfa0"

0 commit comments

Comments
 (0)