Edge Functions overview
Edge Functions connect the Netlify platform and workflow with an open runtime standard at the network edge. This enables you to build fast, personalized web experiences with an ecosystem of development tools.
Using TypeScript and JavaScript, you can modify network requests to localize content, serve relevant ads, authenticate users, personalize content, redirect visitors, and much more. Edge Functions also support a new generation of edge-first web frameworks allowing your entire app to run at the edge, dramatically increasing performance in many cases.
All this dynamic processing happens in a secure runtime based on Deno directly from the worldwide network edge location closest to each user for fast response times. Plus, you have the option to cache edge function responses for even faster response times. With Netlify, your edge functions are version-controlled, built, and deployed along with the rest of your Netlify site. This eliminates overhead and brings the power of Deploy Previews and rollbacks to your edge functions.
# Use cases
To learn more about what’s possible with Edge Functions, explore the following.
Reference examples of common patterns:
- Transform responses with content includes
- Set custom HTTP request headers
- Localize content with geolocation
- Rewrite responses from another URL
- A/B tests using cookies
- Calculate responses with WebAssembly
Framework-specific examples:
- Astro
- Eleventy
- Hydrogen
- Next.js: React Server Components, Edge Middleware
- Nuxt 3
- Remix
- SvelteKit
- Qwik
# Documentation
To learn how to create your own edge functions, check out the documentation.
- Get started: basic hello world example that covers testing and debugging locally, deploying, invoking, and monitoring an edge function.
- Edge Functions API: introduction to key concepts and a full endpoint reference.
- Declarations: configuration details and processing order.
- Optional configuration: options for more control over how your edge functions are built and executed, such as configuring edge functions for caching.
- Limits: operation limits for the runtime environment and feature limitations.
- Create an integration: guidance for framework authors making integrations for developers to use.
- Usage and billing: how to monitor your invocation usage.
# More Edge Functions resources
- Full library of reference examples
- Netlify blog: Edge Functions posts
- Environment variables and functions
- Use the Netlify Blobs API in an edge function
# Feedback
We welcome your feedback on this feature. Visit our Forums to join the conversation about Edge Functions.
Did you find this doc useful?
Your feedback helps us improve our docs.