Skip to content

Commit

Permalink
Chore: add vercel analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
swgvenghy committed Aug 22, 2024
1 parent a6399e2 commit 57ff79f
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
26 changes: 26 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"@types/node": "^16.18.101",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@vercel/analytics": "^1.3.1",
"antd": "^5.19.0",
"axios": "^1.7.2",
"class-variance-authority": "^0.7.0",
Expand Down
2 changes: 2 additions & 0 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@ import ReactDOM from 'react-dom/client';
import reportWebVitals from './reportWebVitals';
import './index.css';
import { CookiesProvider } from 'react-cookie';
import { Analytics } from '@vercel/analytics/react';

const root = ReactDOM.createRoot(document.getElementById('root') as HTMLElement);
root.render(
<CookiesProvider>
<App />
<Analytics />
</CookiesProvider>,
);

Expand Down

0 comments on commit 57ff79f

Please sign in to comment.