Skip to content

Commit

Permalink
chore: add @vercel/analytics (#124)
Browse files Browse the repository at this point in the history
  • Loading branch information
koba04 authored Mar 31, 2023
1 parent 0b762e9 commit eab606b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/swr-devtools-demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"lint": "tsc --noEmit"
},
"dependencies": {
"@vercel/analytics": "^0.1.11",
"next": "^13.1.6",
"react": "18.2.0",
"react-dom": "18.2.0",
Expand Down
2 changes: 2 additions & 0 deletions examples/swr-devtools-demo/pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import "../styles/globals.css";
import { SWRDevTools } from "swr-devtools";
import { Analytics } from "@vercel/analytics/react";

function MyApp({ Component, pageProps }) {
return (
<SWRDevTools>
<Component {...pageProps} />
<Analytics />
</SWRDevTools>
);
}
Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2010,6 +2010,11 @@
"@typescript-eslint/types" "5.38.0"
eslint-visitor-keys "^3.3.0"

"@vercel/analytics@^0.1.11":
version "0.1.11"
resolved "https://registry.yarnpkg.com/@vercel/analytics/-/analytics-0.1.11.tgz#727a0ac655a4a89104cdea3e6925476470299428"
integrity sha512-mj5CPR02y0BRs1tN3oZcBNAX9a8NxsIUl9vElDPcqxnMfP0RbRc9fI9Ud7+QDg/1Izvt5uMumsr+6YsmVHcyuw==

"@vitest/[email protected]":
version "0.29.3"
resolved "https://registry.yarnpkg.com/@vitest/expect/-/expect-0.29.3.tgz#4b101ebcbaed608b20c2592cb7d833eb38e5bfa0"
Expand Down

1 comment on commit eab606b

@vercel
Copy link

@vercel vercel bot commented on eab606b Mar 31, 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:

swr-devtools – ./

swr-devtools.vercel.app
swr-devtools-git-main-koba04.vercel.app
swr-devtools-koba04.vercel.app

Please sign in to comment.