nextra
nextra copied to clipboard
How to add vercel analytics to the Nextra Docs Project
import type { AppProps } from 'next/app';
import { Analytics } from '@vercel/analytics/react';
function MyApp({ Component, pageProps }: AppProps) {
return (
<>
<Component {...pageProps} />
<Analytics />
</>
);
}
export default MyApp;
Since there seems to be no app.tsx file in the /pages route how do we implement analytics?
If I try to add the app.tsx the build fails.
If there is a workaround that I am missing please help me.