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 type { AppProps } from 'next/app'
|
||||||
import Head from 'next/head'
|
import Head from 'next/head'
|
||||||
import '../styles/main.css'
|
import '../styles/main.css'
|
||||||
|
import { Analytics } from '@vercel/analytics/react';
|
||||||
|
|
||||||
export default function App({ Component, pageProps }: AppProps) {
|
export default function App({ Component, pageProps }: AppProps) {
|
||||||
return (
|
return (
|
||||||
@ -16,6 +17,7 @@ export default function App({ Component, pageProps }: AppProps) {
|
|||||||
/>
|
/>
|
||||||
</Head>
|
</Head>
|
||||||
<Component {...pageProps} />
|
<Component {...pageProps} />
|
||||||
|
<Analytics />
|
||||||
</>
|
</>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
import { Html, Head, Main, NextScript } from 'next/document'
|
import { Html, Head, Main, NextScript } from 'next/document'
|
||||||
import { Analytics } from '@vercel/analytics/react';
|
|
||||||
|
|
||||||
export default function Document() {
|
export default function Document() {
|
||||||
const meta = {
|
const meta = {
|
||||||
@ -26,7 +25,6 @@ export default function Document() {
|
|||||||
<body>
|
<body>
|
||||||
<Main />
|
<Main />
|
||||||
<NextScript />
|
<NextScript />
|
||||||
<Analytics />
|
|
||||||
</body>
|
</body>
|
||||||
</Html>
|
</Html>
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user