Unverified Commit 2cc2cb4f authored by Gerald Monaco's avatar Gerald Monaco Committed by GitHub

Support for functional Document components (#28515)

parent d8093ec4
......@@ -116,6 +116,7 @@ export function getPageHandler(ctx: ServerlessHandlerCtx) {
previewProps: encodedPreviewProps,
env: process.env,
basePath,
requireStaticHTML: true, // Serverless target doesn't support streaming
..._renderOpts,
}
let _nextData = false
......
This diff is collapsed.
import { Html, Head, Main, NextScript } from 'next/document'
export default function Document() {
return (
<Html>
<Head />
<body>
<Main />
<NextScript />
</body>
</Html>
)
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment