Edge Functions give you the benefits of static with the power of dynamic. Now you can personalize and experiment without sacrificing speed or performance.
Geolocation Edge Function
Any framework, any function, everywhere.
Deployed with a single command.
Goodbye, cold boots. Experience instant boots and 100x faster startup. Fetch your data without connection pooling, using standard web APIs and a brand new Edge runtime.
Reduce unnecessary burden on your users’ client without impacting load times. Better performance, longer battery life, smoother experience.
Benefit from a seamless integration with your favorite frameworks and tools, automatically optimized and deployed in a single workflow.
Deploy Edge Functions directly to Vercel from any frontend framework with our File System API. No additional tooling or steps required.
From authentication to feature-flagging, explore the possibilities of Edge Functions and deploy your own in seconds.
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
Password protection for your pages using edge middleware
Bot Detection with Botd
Use the browser library Botd to do bot detection at the edge
DataDome Bot Protection
Real-time security protections at the edge with DataDome
Crypto Web API
An example demonstrating how to utilize crypto Web APIs at the edge
Feature Flags Apple Store
Use middleware to temporarily close your online store
A/B Testing with ConfigCat
See how to use ConfigCat's feature flags at the edge
A/B Testing with Split
Use Split to run A/B tests on your server
Geolocation Country Block
Block requests based on their country of origin
Access the user's location through the event.request.geo object
Support a multi-tenant infrastructure using middleware
This example shows how to redirect users based on i18n configuration
DataDome IP Blocking
Use DataDome's real-time security protections for your website
JSON Response Example
An example middleware that returns a simple JSON response
Middleware demo of JWT authentication at the edge
Power Parity Pricing #2
PPP strategies using request geolocation object at the edge
Power Parity Pricing
PPP using request geolocation object on edge middleware
Filtering Query Parameters
Remove query params from request paths
Edge Redirects with Upstash
Middleware showcasing redirects that get evaluated at the edge