Menu

Post image 1
Post image 2
Post image 3
1 / 3
0

Function streaming to be framework-agnostic on Vercel

Vercel News·Javi Velasco·4 days ago
#Bk2j6MTY
Reading 0:00
15s threshold

Streaming will soon be enabled by default for all Node.js Vercel Functions In 2023, Vercel Functions added support for streaming HTTP responses . This feature has been enabled for frameworks like Next.js (App Router), SvelteKit, Remix, and more. We've been progressively rolling out streaming to more frameworks over the past two years, and we're beginning to roll out streaming for all functions and compatible frameworks. Link to heading What changes when streaming responses? When your Vercel Functions stream responses instead of buffering, you can immediately return results to your visitors—either an API function response or a server-side template. Link to heading Responses on runtime errors When streaming, response headers are sent immediately with the initial stream. If there is a runtime error after the initial headers have been sent, the function closes the stream and logs an error to Vercel.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More