Skip to content

Commit 3603517

Browse files
committed
chore: vercel analytics
1 parent 89a180a commit 3603517

3 files changed

Lines changed: 81 additions & 0 deletions

File tree

package-lock.json

Lines changed: 75 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,8 @@
233233
"@tsparticles/slim": "^3.8.1",
234234
"@uiw/react-signature": "^1.3.1",
235235
"@use-gesture/react": "^10.3.1",
236+
"@vercel/analytics": "^1.5.0",
237+
"@vercel/speed-insights": "^1.2.0",
236238
"animate.css": "^4.1.1",
237239
"antd": "^5.24.2",
238240
"axios": "^1.8.1",

src/index.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import React from 'react'
22
import ReactDOM from 'react-dom/client'
33
import { I18nextProvider } from 'react-i18next'
4+
import { Analytics } from '@vercel/analytics/react'
5+
import { SpeedInsights } from '@vercel/speed-insights/react'
46
import '@ant-design/v5-patch-for-react-19'
57
import ThemeIndex from './theme'
68
import { ProThemeProvider } from './theme/hooks'
@@ -23,6 +25,8 @@ root.render(
2325
<I18nextProvider i18n={i18n}>
2426
<ProThemeProvider>
2527
<ThemeIndex />
28+
<Analytics />
29+
<SpeedInsights />
2630
</ProThemeProvider>
2731
</I18nextProvider>
2832
)

0 commit comments

Comments
 (0)