About
This skill provides standardized implementation patterns for Server-Sent Events (SSE) within the Next.js App Router, specifically optimized for Vercel’s serverless architecture. It offers battle-tested boilerplate for using TransformStream on the server and ReadableStream on the client, ensuring reliable progress tracking, notification delivery, and live data feeds without the overhead of WebSockets. It includes critical guidance on managing function timeouts and lifecycle termination to prevent unexpected behavior in production environments.