text: import Document, { Head, Html, Main, NextScript } from 'next/document'
  import { ServerStyleSheet } from 'styled-components'
  
  export default class MyDocument extends Document {
    static async getInitialProps(ctx) {
      const sheet = new ServerStyleSheet()
      const originalRenderPage = ctx.renderPage
  
      try {
        ctx.renderPage = () =>
          originalRenderPage({
            enhanceApp: (App) => (props) =>
              sheet.collectStyles(<App {...props} />),
          })
  
        const initialProps = await Document.getInitialProps(ctx)
        return {
          ...initialProps,
          styles: (
            <>
              {initialProps.styles}
              {sheet.getStyleElement()}
            </>
          ),
        }
      } finally {
        sheet.seal()
      }
    }
    render() {
      return (
        <Html lang='en'>
          <Head>
              <link rel="preconnect" href="https://fonts.googleapis.com" />
              <link rel="preconnect" href="https://fonts.gstatic.com" crossOrigin />
              <link href="https://fonts.googleapis.com/css2?family=Roboto&display=swap" rel="stylesheet" />
              <meta property="og:title" content="Ryan Garay" />
              <meta property="og:type" content="website" />
              <meta property="og:url" content="https://ryangaray.com" />
              <meta property="og:image" content="https://ryangaray.com/images/gitlet_infinite.gif" />
              <meta property="og:description" content="I'm a first-generation college student at The University of California, Berkeley, where I study computer science!" />
          </Head>
          <body>
            <Main />
            <NextScript />
          </body>
        </Html>
      );
    }
  }