import Document, { Head, Main, NextScript } from 'next/document' import { renderStatic } from 'glamor/server' export default class MyDocument extends Document { static async getInitialProps ({ renderPage }) { const page = renderPage() let styles = renderStatic(() => page.html) return { ...page, ...styles } } render () { return (