diff options
Diffstat (limited to 'site')
| -rw-r--r-- | site/package.json | 1 | ||||
| -rw-r--r-- | site/pnpm-lock.yaml | 33 | ||||
| -rw-r--r-- | site/src/main.tsx | 2 |
3 files changed, 36 insertions, 0 deletions
diff --git a/site/package.json b/site/package.json index e538dce..91a0068 100644 --- a/site/package.json +++ b/site/package.json @@ -11,6 +11,7 @@ }, "dependencies": { "@tailwindcss/vite": "^4.1.3", + "@vercel/analytics": "^1.5.0", "react": "^19.0.0", "react-dom": "^19.0.0", "react-router-dom": "^7.5.0", diff --git a/site/pnpm-lock.yaml b/site/pnpm-lock.yaml index ab91ad0..193f510 100644 --- a/site/pnpm-lock.yaml +++ b/site/pnpm-lock.yaml @@ -11,6 +11,9 @@ importers: '@tailwindcss/vite': specifier: ^4.1.3 version: 4.1.3(vite@6.2.6(jiti@2.4.2)(lightningcss@1.29.2)) + '@vercel/analytics': + specifier: ^1.5.0 + version: 1.5.0(react@19.1.0) react: specifier: ^19.0.0 version: 19.1.0 @@ -604,6 +607,32 @@ packages: resolution: {integrity: sha512-RGLh5CRaUEf02viP5c1Vh1cMGffQscyHe7HPAzGpfmfflFg1wUz2rYxd+OZqwpeypYvZ8UxSxuIpF++fmOzEcg==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + '@vercel/analytics@1.5.0': + resolution: {integrity: sha512-MYsBzfPki4gthY5HnYN7jgInhAZ7Ac1cYDoRWFomwGHWEX7odTEzbtg9kf/QSo7XEsEAqlQugA6gJ2WS2DEa3g==} + peerDependencies: + '@remix-run/react': ^2 + '@sveltejs/kit': ^1 || ^2 + next: '>= 13' + react: ^18 || ^19 || ^19.0.0-rc + svelte: '>= 4' + vue: ^3 + vue-router: ^4 + peerDependenciesMeta: + '@remix-run/react': + optional: true + '@sveltejs/kit': + optional: true + next: + optional: true + react: + optional: true + svelte: + optional: true + vue: + optional: true + vue-router: + optional: true + '@vitejs/plugin-react-swc@3.8.1': resolution: {integrity: sha512-aEUPCckHDcFyxpwFm0AIkbtv6PpUp3xTb9wYGFjtABynXjCYKkWoxX0AOK9NT9XCrdk6mBBUOeHQS+RKdcNO1A==} peerDependencies: @@ -1599,6 +1628,10 @@ snapshots: '@typescript-eslint/types': 8.29.1 eslint-visitor-keys: 4.2.0 + '@vercel/analytics@1.5.0(react@19.1.0)': + optionalDependencies: + react: 19.1.0 + '@vitejs/plugin-react-swc@3.8.1(vite@6.2.6(jiti@2.4.2)(lightningcss@1.29.2))': dependencies: '@swc/core': 1.11.20 diff --git a/site/src/main.tsx b/site/src/main.tsx index 528c9a2..9a1f365 100644 --- a/site/src/main.tsx +++ b/site/src/main.tsx @@ -2,12 +2,14 @@ import { StrictMode } from 'react' import { createRoot } from 'react-dom/client' import './index.css' import { BrowserRouter } from "react-router-dom"; +import { Analytics } from "@vercel/analytics/react" import App from './App.tsx' createRoot(document.getElementById('root')!).render( <StrictMode> <BrowserRouter> <App /> + <Analytics /> </BrowserRouter> </StrictMode>, ) |
