fix(website): move vercel analytics

This commit is contained in:
Anthony Berg 2023-11-15 11:31:40 +00:00
parent 3edaecb29b
commit 7e53ea26bf
2 changed files with 2 additions and 2 deletions

View File

@ -2,6 +2,7 @@ import 'nextra-theme-blog/style.css'
import type { AppProps } from 'next/app'
import Head from 'next/head'
import '../styles/main.css'
import { Analytics } from '@vercel/analytics/react';
export default function App({ Component, pageProps }: AppProps) {
return (
@ -16,6 +17,7 @@ export default function App({ Component, pageProps }: AppProps) {
/>
</Head>
<Component {...pageProps} />
<Analytics />
</>
)
}

View File

@ -1,5 +1,4 @@
import { Html, Head, Main, NextScript } from 'next/document'
import { Analytics } from '@vercel/analytics/react';
export default function Document() {
const meta = {
@ -26,7 +25,6 @@ export default function Document() {
<body>
<Main />
<NextScript />
<Analytics />
</body>
</Html>
)