[PPF] Log Sync IO errors in runtime prerenders (#99688)
Closes NAR-959 Sync IO can deopt the result of a runtime prerender, both in a runtime request and in the embedded runtime prefetch stream. Long ago, we decided to not log these errors, with the motivation that: 1. The user didn't opt into the runtime prefetch stream 2. They are not reproducible in dev However: - 1 is now no longer invalid, because the runtime prefetch stream is only enabled in PPF, which _is_ an opt in. - 2 is no longer valid, because opening the page in dev reliably reproduces sync IO errors in cacheable content (see [tests](https://github.com/vercel/next.js/blob/41215d77762375b4b5154b12cfbb4372a835f8a0/test/e2e/app-dir/instant-validation/sync-io-and-blocking.util.ts#L21)) ...so we can now start logging the errors again. This helps the user notice that the deopt is occurring, which they can then go reproduce in dev.
Showing
Please
register
or
sign in
to comment