import NextDocument, { Html, Head, Main, NextScript } from 'next/document' import { dark, getCssString } from 'styles' import { GA_TRACKING_ID } from 'utils/gtag' class MyDocument extends NextDocument { static async getInitialProps(ctx) { try { const initialProps = await NextDocument.getInitialProps(ctx) return { ...initialProps, styles: ( <> {initialProps.styles} > ), } } catch (e) { console.error(e.message) } finally { } } render() { return (