If you try to add metatags to the server side rendered pages it does not show up in page source and will not get picked up by any social media crawlers. It seems to be because of the null in this line:
{typeof window === 'undefined' ? null : <Component {...pageProps} />}
But I don't know if there is any way around this because that window check is required.