Files
hrmny becc655b0e Add 'turbopack/' from commit 'fb033c4917bb1bb98b238f1b4c7a928b66a90887'
git-subtree-dir: turbopack
git-subtree-mainline: 344ddbf093
git-subtree-split: fb033c4917
2024-08-01 16:50:52 +02:00

35 lines
1.0 KiB
JavaScript

import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
import Document, { Html, Head, Main, NextScript } from 'next/document';
class MyDocument extends Document {
static async getInitialProps(ctx) {
const initialProps = await Document.getInitialProps(ctx);
return {
...initialProps,
styles: _jsxs(_Fragment, {
children: [
initialProps.styles,
_jsx("style", {
dangerouslySetInnerHTML: {
__html: `html { background: hotpink; }`
}
})
]
})
};
}
render() {
return _jsxs(Html, {
children: [
_jsx(Head, {}),
_jsxs("body", {
children: [
_jsx(Main, {}),
_jsx(NextScript, {})
]
})
]
});
}
}
export default MyDocument;