Skip to content
Dashboard

Bun runtime on Vercel Functions

Link to headingHow to use the Bun runtime

vercel.json
{
"bunVersion": "1.x"
}

Enable Bun runtime support in your app by adding bunVersion to vercel.json

src/index.ts
import { Hono } from 'hono';
const app = new Hono();
app.get('/', (c) => {
return c.text(`Hello from Hono on Bun ${process.versions.bun}!`);
});
export default app;

Hello World endpoint in Hono with the Bun runtime on Vercel

Link to headingWhy runtime choice matters

Link to headingBenchmark results

Link to headingWhat we measured when profiling

Benchmark results measuring full TTLB with 1 vCPU/2GB

Link to headingPerformance characteristics and tradeoffs

Test your dependencies under Bun before migrating production traffic to confirm expected behavior. While Bun implements Node.js APIs, some edge cases may behave differently.

Link to headingDeploy Bun on Vercel

Try the Bun runtime on Vercel Functions

Switch between Node.js and Bun with a single configuration change. Available in Public Beta.

Deploy with Bun