Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed Aug 12, 2024
1 parent d6042cf commit 67cdcf4
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions packages/next/src/server/app-render/app-render.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -975,11 +975,10 @@ async function renderToHTMLOrFlightImpl(
const buildFailingError = response.digestErrorsMap.values().next().value
if (buildFailingError) throw buildFailingError
}
// Pick first userland SSR error, which is also not a RSC error.
if (response.ssrErrors.length) {
const buildFailingError = response.ssrErrors.find(
(err) =>
isUserLandError(err) &&
!response.digestErrorsMap.has((err as any).digest)
const buildFailingError = response.ssrErrors.find((err) =>
isUserLandError(err)
)
if (buildFailingError) throw buildFailingError
}
Expand Down Expand Up @@ -1232,7 +1231,6 @@ async function renderToStream(
renderOpts.page
)

// Including both RSC errors and SSR errors
const reactServerErrorsByDigest: Map<string, DigestedError> = new Map()
const silenceLogger = false
const serverComponentsErrorHandler = createHTMLReactServerErrorHandler(
Expand Down

0 comments on commit 67cdcf4

Please sign in to comment.