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