import Document, { Head, Main, NextScript } from 'next/document' import { getRenderer } from '../fela' export default class MyDocument extends Document { static getInitialProps ({ renderPage }) { const page = renderPage() const renderer = getRenderer() const css = renderer.renderToString() renderer.clear() return { ...page, css } } render () { return (