ToolsThe story, in brief

Bun runtime for Vercel Functions now accepts Bun.serve as an entrypoint

Bun.serve() now deploys directly to Vercel Functions—no framework wrapping. WebSocket support means real-time apps just work.

Paper-cut illustration of a coral software window opening into a three-dimensional drafting space.
New tools for building and creating with AI.AI illustration by KeyNews
The KeyNews take

Why it matters

Vercel Functions gains native Bun runtime support with Bun.serve as a first-class entrypoint, reducing friction for developers building real-time applications. WebSocket handling and per-message pricing (not idle time) change the economics of connection-heavy workloads.

The key facts

12 to know
  1. Bun.serve() now accepted as Vercel Functions entrypoint

  2. WebSocket handler support included

  3. Active CPU pricing model—charge only for message processing time, not idle connections

  4. Single instance can handle multiple concurrent WebSocket connections

  5. Set bunVersion: '1.x' in vercel.json to enable

  6. Servers run locally with Bun deploy as-is without framework wrapping

  7. Bun.serve() now supported as Vercel Functions entrypoint

  8. Native WebSocket handler support via server.upgrade(request)

  9. Active CPU pricing model—pay only for message processing time, not idle connections

  10. Single function instance can handle multiple concurrent WebSocket connections

  11. Requires bunVersion: '1.x' in vercel.json and routes/server.ts at project root

  12. Server runs locally with Bun and deploys as-is without framework wrapping

Go to the source

Vercel Blogvercel.com

Publisher excerpt: The for Vercel Functions now supports as a function entrypoint, including WebSocket handlers. The server you run locally with Bun deploys as-is, without being wrapped in a framework.Bun runtimeBun.serve() Enable the runtime by setting in ."bunVersion": "1.x"vercel.json Create a server with a map in…
Read original report
Back to today's editionMore tools news

Keep reading

Related stories

More from Tools