Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
static async getInitialProps({ renderPage }) {
const page = renderPage()
const jsxStyles = flush()
const styles = renderStatic(() => page.html || page.errorHtml)
return { ...page, ...styles, styles: jsxStyles }
}