Skip to content
Dashboard

Vercel Edge Functions are now generally available

, Damien Simonin Feugas, , Craig Andrews, , Seiya Nuta, , , Angela Zhang, ,

Faster, cheaper, more flexible compute for your workloads.

Link to headingWhat are Edge Functions?

pages/api/hello.ts
export const config = {
runtime: 'edge'
}
export default function handler(req: Request) {
return new Response("Hello World");
}

A hello world Edge Function in Next.js. Edge Functions are natively available in Next.js, SvelteKit, Astro, and Nuxt or as a standalone function. runtime: 'edge' can be leveraged with Vercel CLI 28.9.0 and above.

We’ve been using an Edge API Route to proxy requests to our backend and rewrite headers on the fly. The lightweight nature of the Edge Runtime and the ability to stream responses ensures that response times stay fast. Additionally, the switch from regular API Routes reduced our costs significantly."
Connor Bär Senior Frontend Engineer

Link to headingMaximum speed, minimum cost

Link to headingWhat's changed: Even more flexibility

Link to headingRegional Edge Functions

We shifted Keystone's API Routes incrementally from Serverless to Edge Functions and couldn't be happier. It was very straightforward for us to make the change on Vercel, and as a result, we've been able to reduce costs and we've seen our compute efficiency drastically improve."
Tormod Ulsberg Principal Architect

Link to headingSupport for WebAssembly

Link to headingIncreased workload size and improved infrastructure

Link to headingThe future of Edge Functions

Link to headingPricing and Limits

Link to headingNext steps

Ready to deploy?