Skip to content

Commit b9e2512

Browse files
committed
chore: enable vercel analytics
1 parent d994243 commit b9e2512

File tree

3 files changed

+39
-1
lines changed

3 files changed

+39
-1
lines changed

docs/index.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { Analytics } from '@vercel/analytics/react'
12
import { createRoot } from 'react-dom/client'
23

34
import { App } from './App.js'
@@ -8,4 +9,9 @@ app.classList.add('markdown-body')
89

910
const root = createRoot(app)
1011

11-
root.render(<App />)
12+
root.render(
13+
<>
14+
<App />
15+
<Analytics />
16+
</>,
17+
)

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@
7272
"@types/react": "^19.1.0",
7373
"@types/react-dom": "^19.1.1",
7474
"@types/web": "^0.0.216",
75+
"@vercel/analytics": "^1.5.0",
7576
"@vitejs/plugin-react-swc": "^3.8.1",
7677
"@vitest/coverage-v8": "^3.1.1",
7778
"clean-pkg-json": "^1.2.1",

yarn.lock

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5027,6 +5027,36 @@ __metadata:
50275027
languageName: node
50285028
linkType: hard
50295029

5030+
"@vercel/analytics@npm:^1.5.0":
5031+
version: 1.5.0
5032+
resolution: "@vercel/analytics@npm:1.5.0"
5033+
peerDependencies:
5034+
"@remix-run/react": ^2
5035+
"@sveltejs/kit": ^1 || ^2
5036+
next: ">= 13"
5037+
react: ^18 || ^19 || ^19.0.0-rc
5038+
svelte: ">= 4"
5039+
vue: ^3
5040+
vue-router: ^4
5041+
peerDependenciesMeta:
5042+
"@remix-run/react":
5043+
optional: true
5044+
"@sveltejs/kit":
5045+
optional: true
5046+
next:
5047+
optional: true
5048+
react:
5049+
optional: true
5050+
svelte:
5051+
optional: true
5052+
vue:
5053+
optional: true
5054+
vue-router:
5055+
optional: true
5056+
checksum: 10/ae13f10585ffd458e2e00b7e3711f62fc5806447b119e3a6bc19cb1e8a1971527b434343e63207155bef5e4a170b7be6b83822ab94f4716df243cbc2a3fff3b4
5057+
languageName: node
5058+
linkType: hard
5059+
50305060
"@vitejs/plugin-react-swc@npm:^3.8.1":
50315061
version: 3.8.1
50325062
resolution: "@vitejs/plugin-react-swc@npm:3.8.1"
@@ -10769,6 +10799,7 @@ __metadata:
1076910799
"@types/react": "npm:^19.1.0"
1077010800
"@types/react-dom": "npm:^19.1.1"
1077110801
"@types/web": "npm:^0.0.216"
10802+
"@vercel/analytics": "npm:^1.5.0"
1077210803
"@vitejs/plugin-react-swc": "npm:^3.8.1"
1077310804
"@vitest/coverage-v8": "npm:^3.1.1"
1077410805
clean-pkg-json: "npm:^1.2.1"

0 commit comments

Comments
 (0)