import Document, { Head, Main, NextScript } from 'next/document' import cxs from 'cxs' export default class MyDocument extends Document { static async getInitialProps ({ renderPage }) { const page = renderPage() const style = cxs.getCss() return { ...page, style } } render () { return ( My page