Skip to content
New

Monitoring and Logs are now GA. Learn more

LocalizationExperimentAuthenticate
at the edge

Vercel's Edge Network gives you access to powerful compute without added latency. Test locally, deploy globally, with zero configuration.

Better performance

Less code shipped to the browser means better performance on any network.

No configuration

Define your application's global infrastructure directly from your code.

Seamless staging

Get the full picture of how your code works in production.

edge functions

Dynamic at the speed of static

The benefits of serverless compute, with the speed of global replication. Personalize experiences for each user without the overhead of added infrastructure maintenance or latency.

Powered by the Edge Runtime

Vercel is working with partners from across the industry to develop open standards for Edge Compute, and provide everyone with the tools to build for the future of web infrastructure.

Learn more

Your choice of language at the Edge

Build your functions with JavaScript, TypeScript, or any language that compiles to WebAssembly (Wasm).

Deploy with your data or globally

Deploy your functions globally or in a single region to minimize latency to your customers or to your data fetching at the edge.

code example

Hello World at the Edge

A demo Next.js app running on Vercel Edge Functions.

Uses Next.js

“We can show the control or experiment version of a page immediately instead of using third-party scripts. This results in better performance and removes the likelihood of flickering/layout shifts.”

Jillian Anderson Slate

Software Engineer, SumUp

edge middleware

Compute before the cache

When compute happens instantly, routing decisions can be made before the cache. Making A/B testing and feature flagging possible without added third-party scripts or client-side JavaScript.

How edge middleware works

Middleware is designed to run before serving requests from the edge cache, to enable instant rewrites and redirects.

When deployed to Vercel, Middleware is automatically configured as a special set of Edge Functions that are deployed globally with zero cold boots.

Learn more

Get started with Edge Middleware

customize

Fast, flexible personalization

A/B testing and Feature Flags

The first impressions of a site are made in the first 50 milliseconds of viewing. With Edge Middleware, users will only see what you want them to see.

Geolocation

Safely pre-deploy multiple versions of your site and route users to the correct version at runtime—without any delays.

code example

A/B Testing with Split

Use Split to run A/B tests on your server.

Uses Next.js and Split

protect

Full routing & access control

Bot Protection

Prevent unwanted traffic spikes and protect against attacks by using integrations with bot detection, like DataDome, that allow you to check who is visiting your site.

Authentication

With simple authentication from a single route, you can check for cookies and perform rewrites at the edge, always ensuring you’re sending users to the correct version of the page.

code example

DataDome Bot Protection

Real-time security protections at the edge with DataDome.

Uses Next.js and DataDome

“We’re excited to leverage Vercel platform features like Edge Middleware that will allow us to continue delivering delightful experiences on the web with the same level of performance that our customers have come to expect of our products.”

Dylan Staley

Software Engineer, HashiCorp

GET STARTED WITH CODE EXAMPLES

Unlock the potential of edge computing

From authentication to feature-flagging, explore the possibilities of the edge and deploy in seconds

Hello World Edge

A classic Hello World for the edge.

Cache Control Edge

Cache control for the edge.

Authentication Proxy

An auth proxy on the edge.

Google Optimize A/B Testing

Google Optimize experiments at the edge

Simple A/B Testing

Run A/B tests from the server-side

API Rate Limiting With Keys

IP blocking and rate limiting using API keys

API Rate Limiting

Use Upstash to rate limit your API at the edge

Basic Auth

Password protection for your pages using edge middleware

JSON Response Edge

A JSON response on the edge.