Skip to content

Commit

Permalink
tune cond of wait all
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed Feb 28, 2025
1 parent 73e6fcf commit 6e5ca21
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/next/src/server/base-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2484,10 +2484,8 @@ export default abstract class Server<
query: origQuery,
})

const shouldWaitOnAllReady =
!supportsDynamicResponse ||
// When html bots request PPR page, perform the full dynamic rendering.
(isHtmlBot && isRoutePPREnabled)
// When html bots request PPR page, perform the full dynamic rendering.
const shouldWaitOnAllReady = isHtmlBot && isRoutePPREnabled

const renderOpts: LoadedRenderOpts = {
...components,
Expand Down

0 comments on commit 6e5ca21

Please sign in to comment.