import NextApp , { AppContext , NextWebVitalsMetric } from 'next/app' ; import { gtagReportWebVitals } from '@weco/common/utils/gtag' ; import App , { WecoAppProps } from '@weco/common/views/pages/_app' ; export function reportWebVitals ( metric ) { gtagReportWebVitals ( metric ) ; } export default function ContentApp ( props ) { return < App { ... props } / > ; } ContentApp . getInitialProps = async ( appContext ) => { const initialProps = await NextApp . getInitialProps ( appContext ) ; delete appContext . ctx . query . memoizedPrismic ; return { ... initialProps } ; } ;