How to propagate AbortController signals through Next.js API routes to prevent orphaned database operations on client disconnect
AbortController Signal Propagation in Next.js API Routes Next.js API routes and serverless functions do not automatically propagate AbortController signals from incoming requests to downstream operations like database queries or external API calls. When a client disconnects or a timeout occurs, Node.js may terminate the serverless function mid-execution, pot