From 2a543cfd719714cc8aaf93cbb15082537612900c Mon Sep 17 00:00:00 2001 From: Gerald Monaco Date: Wed, 9 Feb 2022 03:18:00 +0000 Subject: [PATCH] Use the browser implementation when reactRoot: true --- packages/next/server/render.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/next/server/render.tsx b/packages/next/server/render.tsx index cf73919b4df67..7976f6c7eda06 100644 --- a/packages/next/server/render.tsx +++ b/packages/next/server/render.tsx @@ -1175,7 +1175,7 @@ export async function renderToHTML( return inAmpMode ? children :
{children}
} - const ReactDOMServer = hasConcurrentFeatures + const ReactDOMServer = reactRoot ? require('react-dom/server.browser') : require('react-dom/server')