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.

[Get started for free](https://app.netlify.com/signup) [Read the docs](https://docs.netlify.com/build/edge-functions/overview/)

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.

[Learn about High-Performance Edge](https://www.netlify.com/platform/core/high-performance-edge/)

70+ global locations

99.99% uptime SLA

Up to 50% faster response time

![Navan](/images/home/logos/navan.svg)

![Contentful](/images/home/logos/contentful.svg)

![Unilever](/images/home/logos/unilever.svg)

![Stack Overflow](/images/home/logos/stack-overflow.svg)

![Riot Games](/images/home/logos/riot-games.svg)

![Nike](/images/home/logos/nike.svg)

![Kubernetes](/images/home/logos/kubernetes.svg)

![Figma](/images/home/logos/figma.svg)

![Navan](/images/home/logos/navan.svg)

![Contentful](/images/home/logos/contentful.svg)

![Unilever](/images/home/logos/unilever.svg)

![Stack Overflow](/images/home/logos/stack-overflow.svg)

![Riot Games](/images/home/logos/riot-games.svg)

![Nike](/images/home/logos/nike.svg)

![Kubernetes](/images/home/logos/kubernetes.svg)

![Figma](/images/home/logos/figma.svg)

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.

![Global edge network diagram](/images/platform/ttfl-graphic.svg)

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.

![Atomic deploys and instant cache invalidation](/images/platform/cache.svg)

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.

![Git-based configuration for Netlify Edge](/images/platform/deploy-preview.svg)

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.

![Configuration snippet for Edge Function declarations](/images/platform/redirects.svg)

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.

![Personalized content served from the edge](/images/platform/personalization.svg)

Everything you need

## Jam-packed with features

[

Global distribution

](https://www.netlify.com/blog/2016/04/15/make-your-site-faster-with-netlifys-intelligent-cdn/)

Deploy your sites and apps to a global edge network with atomic deploys, instant cache invalidation, and no origin infrastructure to manage.

[

Staging & production

](https://docs.netlify.com/site-deploys/overview/#branches-and-deploys)

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

](https://docs.netlify.com/edge-functions/overview/)

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

](https://docs.netlify.com/routing/redirects/rewrites-proxies/#proxy-to-another-service)

Set up edge rules to let parts of your site proxy to external services or your own infrastructure.

[

Git-integrated CI/CD

](https://www.netlify.com/platform/core/build/)

Netlify Edge seamlessly integrates with Netlify Build to automate every aspects of building, testing, and deploying web applications.

[

Password protect URLs

](https://docs.netlify.com/visitor-access/password-protection/)

Easily hide all or part of your site behind a password that you control and configure in the Netlify Dashboard.

[

Atomic deployments

](https://docs.netlify.com/site-deploys/manage-deploys/)

Each deploy updates all code and assets all at once, without any maintenance window. All prior versions remain available at permanent URLs.

[

Rollbacks

](https://docs.netlify.com/site-deploys/manage-deploys/)

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

](https://docs.netlify.com/site-deploys/manage-deploys/)

Send site visitors to different content based on their location (by country GeoIP data) or their browser’s language configuration.

[

Instant cache invalidation

](https://www.netlify.com/blog/2015/09/11/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

](https://docs.netlify.com/site-deploys/overview/)

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

](https://docs.netlify.com/site-deploys/split-testing/)

Splits visitors across multiple versions of content or gradually roll out new features across your userbase.

[

URL-based dynamic image transformation

](https://docs.netlify.com/large-media/transform-images/#request-transformations)

Use Netlify Large Media to scale and crop images in realtime using simple URL parameters.

[

URL normalization

](https://docs.netlify.com/routing/redirects/redirect-options/#trailing-slash)

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.

![Avatar of Maciej Malesa](https://www.netlify.com/v3/img/build/hiYNyfMD5A-328.webp)

Maciej Malesa CTO, LiveChat

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

](/platform/core/workflow/)

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

](/platform/core/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

](https://docs.netlify.com/build/edge-functions/overview/)

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

](/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.

[Get started for free](https://app.netlify.com/signup) [Request a demo](/contact/sales/)