Skip to content

Commit cd365c0

Browse files
committed
Fix tests
1 parent cc32469 commit cd365c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/next/next-server/server/render.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -461,8 +461,8 @@ export async function renderToHTML(
461461
!getServerSideProps
462462

463463
if (
464-
(process.env.NEXT_CONCURRENT_FEATURES && typeof Document !== 'function') ||
465-
Document.prototype
464+
process.env.NEXT_CONCURRENT_FEATURES &&
465+
(typeof Document !== 'function' || Document.prototype)
466466
) {
467467
throw new Error(CUSTOM_DOCUMENT_RSC_ERROR + ` ${pathname}`)
468468
}

0 commit comments

Comments
 (0)