mirror of
https://github.com/smyalygames/anthonyberg-website.git
synced 2025-05-18 06:04:12 +02:00
fix(website): move vercel analytics
This commit is contained in:
parent
3edaecb29b
commit
7e53ea26bf
@ -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 />
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
@ -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>
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user