Files
voyage/apps/public-web/node_modules/next/dist/server/node-environment-extensions/unhandled-rejection.d.ts
PascalSchattenburg d147843c76 feat(blog): add file-based blog with dynamic slugs, MDX content and layout shell
- Introduced blog routing using Next.js App Router
- Implemented dynamic [slug] pages for blog posts
- Added MDX-based content loading via lib/posts
- Integrated shared TopBar layout with navigation
- Established clear content, lib and component separation
2026-01-22 14:14:15 +01:00

22 lines
998 B
TypeScript

/**
* Manages unhandled rejection listeners to intelligently filter rejections
* from aborted prerenders when cache components are enabled.
*
* THE PROBLEM:
* When we abort prerenders we expect to find numerous unhandled promise rejections due to
* things like awaiting Request data like `headers()`. The rejections are fine and should
* not be construed as problematic so we need to avoid the appearance of a problem by
* omitting them from the logged output.
*
* THE STRATEGY:
* 1. Install a filtering unhandled rejection handler
* 2. Intercept process event methods to capture new handlers in our internal queue
* 3. For each rejection, check if it comes from an aborted prerender context
* 4. If yes, suppress it. If no, delegate to all handlers in our queue
* 5. This provides precise filtering without time-based windows
*
* This ensures we suppress noisy prerender-related rejections while preserving
* normal error logging for genuine unhandled rejections.
*/
export {};