Skip to content

Commit

Permalink
Enable concurrent mode by default in app-render (#39307)
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi authored Aug 3, 2022
1 parent ad687c9 commit 1039dd4
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 7 deletions.
5 changes: 1 addition & 4 deletions packages/next/server/app-render.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,6 @@ export async function renderToHTMLOrFlight(
buildManifest,
serverComponentManifest,
supportsDynamicHTML,
runtime,
ComponentMod,
} = renderOpts

Expand Down Expand Up @@ -1046,11 +1045,9 @@ export async function renderToHTMLOrFlight(
},
})

const hasConcurrentFeatures = !!runtime

return await continueFromInitialStream(renderStream, {
dataStream: serverComponentsInlinedTransformStream?.readable,
generateStaticHTML: generateStaticHTML || !hasConcurrentFeatures,
generateStaticHTML: generateStaticHTML,
flushEffectHandler,
flushEffectsToHead: true,
initialStylesheets,
Expand Down
1 change: 0 additions & 1 deletion test/e2e/app-dir/app-rendering/next.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
module.exports = {
experimental: {
appDir: true,
runtime: 'nodejs',
serverComponents: true,
},
}
1 change: 0 additions & 1 deletion test/e2e/app-dir/app/next.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
module.exports = {
experimental: {
appDir: true,
runtime: 'nodejs',
serverComponents: true,
legacyBrowsers: false,
browsersListForSwc: true,
Expand Down
1 change: 0 additions & 1 deletion test/e2e/app-dir/rsc-basic/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ module.exports = {
},
experimental: {
appDir: true,
runtime: 'nodejs',
serverComponents: true,
},
}

0 comments on commit 1039dd4

Please sign in to comment.