Vercel Edge Functions
Vercel Edge Functions let you run serverless code at the edge for fast, dynamic web experiences. · Vercel · Compute
Overview
Vercel Edge Functions enable developers to run serverless JavaScript or TypeScript code at the edge, providing fast, dynamic responses for web applications with a generous free tier suitable for most small to medium projects.
Good fit
Use when you need low-latency, serverless code execution close to users for dynamic web features or middleware.
- dynamic web apps
- middleware
- personalization
Not a fit
Avoid if you need long-running processes, high memory, or heavy compute workloads; not suitable for backend-only APIs.
- heavy compute
- long-running tasks
- high memory needs
Quickstart · 5 steps
- Sign up for a free Vercel account.
- Create or import a project (e.g., Next.js).
- Add an Edge Function in the /api or /middleware directory.
- Deploy your project to Vercel.
- Test your Edge Function via the deployed URL.
Other free compute options
Free tierWhat you get freeRiskCard
Cloudflare · Compute
100,000 requests/day · 10ms CPU time/request · Up to 100 Workers per account
Billing risk: None
No card
Vercel · Compute
1,000,000 Function Invocations/month included · 4 hours Fluid Active CPU/month included · 360 GB-hrs Fluid Provisioned Memory/month included
Billing risk: None
No card
Trigger.dev · Compute
$5 compute credits per month · 20 concurrent runs · Unlimited tasks
Billing risk: None
No card
Windmill.dev · Compute
Unlimited executions/month · Up to 50 users (max 10 with SSO) · 3 workspaces
Billing risk: None
No card