Netlify Edge
Give your sites the edge
Netlify Edge is a global platform for powering web experiences that are fast, reliable, and secure. Ship from Git to worldwide edge locations in seconds and run custom logic at the network edge for every visitor.
-
Go from Git to global
Deploy your sites and apps to a global edge network with atomic deploys, instant cache invalidation, and no origin infrastructure to manage.
-
Program the edge
Use Edge Functions written in TypeScript or JavaScript to modify requests and responses right where your users are.
-
Control every request
Configure redirects, proxies, access control, and A/B tests in Git, with fine-grained matching on paths, headers, methods, and more.
Use cases
What you can do at the edge
Build APIs, store files, manage data, control performance. No backend setup required—just build and deploy.
import type { Config, Context } from "@netlify/edge-functions";
export default async (request: Request, { geo }: Context) => {
const url = new URL(request.url);
const country = geo.country?.code ?? "US";
url.searchParams.set("country", country);
return Response.redirect(url, 302);
};
export const config: Config = {
path: "/*",
}; import type { Config, Context } from "@netlify/edge-functions";
export default async (request: Request, { cookies }: Context) => {
const existing = cookies.get("exp-variant")?.value;
const variant = existing ?? (Math.random() < 0.5 ? "a" : "b");
if (!existing) {
cookies.set({ name: "exp-variant", value: variant, path: "/" });
}
const url = new URL(request.url);
url.pathname = variant === "a" ? "/landing-a" : "/landing-b";
return url;
};
export const config: Config = {
path: "/landing",
}; import type { Config, Context } from "@netlify/edge-functions";
export default async (request: Request, { cookies }: Context) => {
const session = cookies.get("session-token")?.value;
if (!session) {
const login = new URL("/login", request.url);
login.searchParams.set("redirect", new URL(request.url).pathname);
return Response.redirect(login, 302);
}
return;
};
export const config: Config = {
path: ["/account/*", "/billing/*"],
}; import type { Config, Context } from "@netlify/edge-functions";
export default async (request: Request, { next }: Context) => {
const response = await next();
const text = await response.text();
const updated = text.replace("<title>", "<title>[Edge optimized] ");
return new Response(updated, response);
};
export const config: Config = {
path: "/*",
}; Enterprise
Upgrade to High-Performance Edge for even more speed and reliability.
For production sites with unparalleled performance, upgrade to High-Performance Edge for even more power and control.
-
70+ global locations
-
99.99% uptime SLA
-
Up to 50% faster response time
Core capabilities
The fast, resilient network for web apps
Make sites dramatically faster
Global distribution & prerendering
Global distribution with automated prerendering makes for impressively fast site delivery. Smashing Magazine moved to Netlify for a 10× boost in performance.
Release with confidence
Atomic deploys & instant cache invalidation
Every deploy publishes all code and assets at once, invalidating caches globally in seconds and keeping old deploys available at permanent URLs. Deploy thousands of times daily without any risk of partial deploys or stale assets.
Go from Git to edge
Git-integrated CI/CD & configuration
Automate builds and deploys with Netlify Build and configure redirects, proxies, and headers in a version-controlled netlify.toml file.
Match exactly the traffic you need
Declarative routing & matching
Control which requests run which edge logic using path and pattern matching, excluded paths and patterns, headers, HTTP methods, and caching settings.
Personalize with ease
Programmable edge logic for personalization
Localize by country or language, serve relevant banner ads, authenticate visitors, run A/B tests, and more with Edge Functions and geolocation.
Everything you need
Jam-packed with features
-
Global distribution
Deploy your sites and apps to a global edge network with atomic deploys, instant cache invalidation, and no origin infrastructure to manage.
Learn more -
Staging & production
On Netlify Edge, you can build, test, and deploy across the same global production environment. What you preview matches exactly what you’ll see once changes are live.
Learn more -
Programmable edge logic
Run custom code right from the network edge with incredible performance. Modify each request to localize content, serve relevant banner ads, authenticate visitors, and more.
Learn more -
Proxy to other services
Set up edge rules to let parts of your site proxy to external services or your own infrastructure.
Learn more -
Git-integrated CI/CD
Netlify Edge seamlessly integrates with Netlify Build to automate every aspects of building, testing, and deploying web applications.
Learn more -
Password protect URLs
Easily hide all or part of your site behind a password that you control and configure in the Netlify Dashboard.
Learn more -
Atomic deployments
Each deploy updates all code and assets all at once, without any maintenance window. All prior versions remain available at permanent URLs.
Learn more -
Rollbacks
Restoring your entire site to any previous deploy happens instantaneously. Every prior deploy remains accessible at its own permanent URL.
Learn more -
Redirect by country or language
Send site visitors to different content based on their location (by country GeoIP data) or their browser’s language configuration.
Learn more -
Instant cache invalidation
Cache control on most CDNs is tricky business. With Netlify, every deploy updates global caches instantly, supporting richer applications than possible on a CDN.
Learn more -
Everything deploys together
Frontend builds. Serverless code. Edge routing logic. No other service allows you to write and manage everything from a single repository.
Learn more -
A/B tests & phased rollouts
Splits visitors across multiple versions of content or gradually roll out new features across your userbase.
Learn more -
URL-based dynamic image transformation
Use Netlify Large Media to scale and crop images in realtime using simple URL parameters.
Learn more -
URL normalization
Netlify will match paths to rules regardless of whether or not they contain a trailing slash.
Learn more
“Moving all LiveChat websites to Netlify has empowered our Web Dev Team to iterate fast and independently.”
-
Netlify Workflow
Work as a team, right in Git. Netlify deploys every resource to the right place, from global static assets to serverless functions and edge logic.
Learn more about workflows -
Netlify Build
The Git workflow for web development. Build, deploy, and manage modern web projects that rely on Netlify Edge for delivery and logic.
Learn more about Netlify Build -
Netlify Edge Functions
Run custom code at the network edge using a runtime integrated with your deploy workflow, logs, and monitoring.
Learn more about Edge Functions -
Addons & Integrations
Add powerful capabilities to every build and integrate easily with other SaaS services using official integrations and community plugins.
Learn more about integrations
Ready to try Netlify?
Go from Git to global edge deployment in minutes. Start on the free tier and scale up to High-Performance Edge when you need more power.