Vercel analytics support (#1035)

This commit is contained in:
Nabarun
2023-06-16 14:25:55 +08:00
committed by GitHub
parent 7aeb9de3d9
commit cd284bef28
3 changed files with 10 additions and 0 deletions
+2
View File
@@ -2,6 +2,7 @@ import '@fortawesome/fontawesome-svg-core/styles.css'
import '../styles/globals.css'
import '../styles/markdown-github.css'
import { Analytics } from '@vercel/analytics/react';
// Require had to be used to prevent SSR failure in Next.js
// Related discussion: https://github.com/FortAwesome/Font-Awesome/issues/19348
@@ -123,6 +124,7 @@ function MyApp({ Component, pageProps }: AppProps) {
return (
<>
<NextNProgress height={1} color="rgb(156, 163, 175, 0.9)" options={{ showSpinner: false }} />
<Analytics />
<Component {...pageProps} />
</>
)