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
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.
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.
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.
Proxy to other services
Set up edge rules to let parts of your site proxy to external services or your own infrastructure.
Git-integrated CI/CD
Netlify Edge seamlessly integrates with Netlify Build to automate every aspects of building, testing, and deploying web applications.
Password protect URLs
Easily hide all or part of your site behind a password that you control and configure in the Netlify Dashboard.
Atomic deployments
Each deploy updates all code and assets all at once, without any maintenance window. All prior versions remain available at permanent URLs.
Rollbacks
Restoring your entire site to any previous deploy happens instantaneously. Every prior deploy remains accessible at its own permanent URL.
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.
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.
Everything deploys together
Frontend builds. Serverless code. Edge routing logic. No other service allows you to write and manage everything from a single repository.
A/B tests & phased rollouts
Splits visitors across multiple versions of content or gradually roll out new features across your userbase.
URL-based dynamic image transformation
Use Netlify Large Media to scale and crop images in realtime using simple URL parameters.
URL normalization
Netlify will match paths to rules regardless of whether or not they contain a trailing slash.
Moving all LiveChat websites to Netlify has empowered our Web Dev Team to iterate fast and independently.
Deploy & collaborate
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 Build & integrate
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 Execute at the edge
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 Extensions
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