diff --git a/package.json b/package.json index 0abc694..3e6c4ea 100644 --- a/package.json +++ b/package.json @@ -16,6 +16,8 @@ "@fortawesome/free-solid-svg-icons": "^6.6.0", "@fortawesome/react-fontawesome": "^0.2.2", "@radix-ui/react-icons": "^1.3.0", + "@vercel/analytics": "^1.5.0", + "@vercel/speed-insights": "^1.2.0", "artplayer": "^5.2.3", "artplayer-plugin-chapter": "^1.0.0", "artplayer-plugin-hls-control": "^1.0.1", diff --git a/src/App.jsx b/src/App.jsx index fffc4a2..072492c 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -1,6 +1,8 @@ import { useLocation } from "react-router-dom"; import { useEffect } from "react"; import { Routes, Route } from "react-router-dom"; +import { Analytics } from '@vercel/analytics/react'; +import { SpeedInsights } from '@vercel/speed-insights/react'; import { HomeInfoProvider } from "./context/HomeInfoContext"; import Home from "./pages/Home/Home"; import AnimeInfo from "./pages/animeInfo/AnimeInfo"; @@ -71,6 +73,8 @@ function App() { {!isSplashScreen &&