Node.js Vercel Functions now support per-path request cancellation
Vercel cuts wasted AI inference costs with per-path request cancellation—stop token generation the moment users navigate away.

Why it matters
As AI applications consume more compute per request, infrastructure platforms are adding granular controls to prevent token waste when users abandon requests. This is a meaningful cost lever for AI-heavy apps at scale.
The key facts
12 to knowVercel Functions (Node.js) now support per-request cancellation detection
Configurable per-path via 'supportsCancellation: true' in vercel.json
Cancellation triggers: navigation, tab close, user-initiated stop (e.g., AI chat interrupts)
Reduces unnecessary compute, token generation, and bandwidth waste
Implementation via Request.signal.aborted or abort event listener
AI SDK integration: forwards abortSignal to streams for early termination
Per-path request cancellation now supported in Node.js Vercel Functions
Detects user actions: tab close, navigation, chat stop button
Configurable via 'supportsCancellation': true in vercel.json
Reduces compute, token generation, and data transmission for cancelled requests
Works with AI SDK by forwarding abortSignal to streams
Available immediately for Node.js; applies to streaming/long-running AI workloads
Go to the source
Vercel Blogvercel.com
Publisher excerpt: can now detect when a request is cancelled and stop execution before completion. This is configurable on a per-path basis, and includes actions like navigating away, closing a tab, or hitting stop on an AI chat to terminate compute processing early.Vercel Functions using Node.js This reduces…