megachangelog
Feature

Node.js Vercel Functions now support per-path request cancellation

Node.js Vercel Functions can now detect cancelled requests and stop execution early by configuring supportsCancellation in vercel.json on a per-path basis. This reduces wasted compute and token generation when users navigate away or close tabs.

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 unnecessary compute, token generation, and sending data the user would never see.

To enable cancellation, add to your configuration. You can apply it to specific paths or all functions:"supportsCancellation": truevercel.json

Once enabled, you can listen for cancellation using or the event:Request.signal.abortedabort

If you’re using the , forward the to your stream:AI SDKabortSignal

Learn more about .cancelling Function requests

Read more

functionsnodejsperformancecancellationcompute

Source: original entry ↗

More from Vercel

Follow Vercel to get its new changes in your feed and email digest.

Announcement2026.10.19

Updates to Hobby and Pro Terms of Service

Vercel is updating Terms of Service for Hobby and Pro customers effective October 19, 2026, clarifying credit policies, managed accounts, auto-renewal practices, and adding statutory cancellation and refund rights for UK and EU consumers, including protections for service changes with negative impact.

termsbillingcreditspolicylegal
Announcement

Mercury 3 now available on AI Gateway

Inception's Mercury 3 model is now available on Vercel's AI Gateway with 50% launch pricing and generation speeds exceeding 1,000 tokens per second. The model enables parallel text refinement with a 1M-token context window, ideal for real-time applications like browser agents and customer support.

ai-gatewaymodelsinferencellmlaunch
Announcement

MiniMax M3.1 Flash now available on AI Gateway for free

MiniMax M3.1 Flash, an open-weight multimodal model with 1M-token context window for coding and agentic work, is now available on Vercel's AI Gateway at no cost through October 20. The model excels at complex agent tasks, coding applications, and cybersecurity work, and can be used through multiple APIs and coding agents.

ai-gatewaymodelscodingagentsapi
See all Vercel changes →