Skip to content

Commit

Permalink
Revert "fix(build-output): show stack during CSR bailout warning" (#6…
Browse files Browse the repository at this point in the history
  • Loading branch information
balazsorban44 committed Feb 27, 2024
1 parent 629cb14 commit 18200a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/next/src/server/app-render/app-render.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1179,8 +1179,8 @@ async function renderToHTMLOrFlightImpl(
// a suspense boundary.
const shouldBailoutToCSR = isBailoutToCSRError(err)
if (shouldBailoutToCSR) {
const stack = getStackWithoutErrorMessage(err)
if (renderOpts.experimental.missingSuspenseWithCSRBailout) {
const stack = getStackWithoutErrorMessage(err)
error(
`${err.reason} should be wrapped in a suspense boundary at page "${pagePath}". Read more: https://nextjs.org/docs/messages/missing-suspense-with-csr-bailout\n${stack}`
)
Expand All @@ -1189,7 +1189,7 @@ async function renderToHTMLOrFlightImpl(
}

warn(
`Entire page "${pagePath}" deopted into client-side rendering due to "${err.reason}". Read more: https://nextjs.org/docs/messages/deopted-into-client-rendering\n${stack}`
`Entire page "${pagePath}" deopted into client-side rendering due to "${err.reason}". Read more: https://nextjs.org/docs/messages/deopted-into-client-rendering`
)
}

Expand Down

0 comments on commit 18200a8

Please sign in to comment.