Meet the new Netlify, where developers, agents, and now anyone with an idea build together. See what’s new.

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.

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.

  • Navan
  • Contentful
  • Unilever
  • Stack Overflow
  • Riot Games

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

    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

      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

        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

          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

            Everything you need

            Jam-packed with features

            “Moving all LiveChat websites to Netlify has empowered our Web Dev Team to iterate fast and independently.”

            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.