We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc32469 commit cd365c0Copy full SHA for cd365c0
packages/next/next-server/server/render.tsx
@@ -461,8 +461,8 @@ export async function renderToHTML(
461
!getServerSideProps
462
463
if (
464
- (process.env.NEXT_CONCURRENT_FEATURES && typeof Document !== 'function') ||
465
- Document.prototype
+ process.env.NEXT_CONCURRENT_FEATURES &&
+ (typeof Document !== 'function' || Document.prototype)
466
) {
467
throw new Error(CUSTOM_DOCUMENT_RSC_ERROR + ` ${pathname}`)
468
}
0 commit comments