add plugin for vercel

This commit is contained in:
Zheyuan Wu
2025-01-14 18:47:56 -06:00
parent 2853168aae
commit 80e238f439
4 changed files with 93 additions and 2 deletions

View File

@@ -1,8 +1,14 @@
import { ThemeProvider } from 'next-themes'
import { SpeedInsights } from "@vercel/speed-insights/next"
import { Analytics } from "@vercel/analytics/react"
export default function App({ Component, pageProps }) {
return (
<ThemeProvider attribute='class'>
{/* SpeedInsights in vercel */}
<SpeedInsights />
{/* Analytics in vercel */}
<Analytics />
<Component {...pageProps} />
</ThemeProvider>
)