• AI Cloud
      • AI SDK

        The AI Toolkit for TypeScript

      • AI Gateway

        One endpoint, all your models

      • Vercel Agent

        An agent that knows your stack

    • Core Platform
      • CI/CD

        Helping teams ship 6× faster

      • Content Delivery

        Fast, scalable, and reliable

      • Fluid Compute

        Servers, in serverless form

      • Observability

        Trace every step

    • Security
      • Bot Management

        Scalable bot protection

      • BotID

        Invisible CAPTCHA

      • Platform Security

        DDoS Protection, Firewall

      • Web Application Firewall

        Granular, custom protection

    • Company
      • Customers

        Trusted by the best teams

      • Blog

        The latest posts and changes

      • Changelog

        See what shipped

      • Press

        Read the latest news

      • Events

        Join us at an event

    • Open Source
      • Next.js

        The native Next.js platform

      • Nuxt

        The progressive web framework

      • Svelte

        The web's efficient UI framework

      • Turborepo

        Speed with Enterprise scale

    • Tools
      • Academy

        Learn the ins and outs of Vercel

      • Marketplace

        Extend and automate workflows

      • Templates

        Jumpstart app development

      • Knowledge Base

        Find help quickly

      • Partner Finder

        Get help from solution partners

    • Use Cases
      • AI Apps

        Deploy at the speed of AI

      • Composable Commerce

        Power storefronts that convert

      • Marketing Sites

        Launch campaigns fast

      • Multi-tenant Platforms

        Scale apps with one codebase

      • Web Apps

        Ship features, not infrastructure

    • Users
      • Platform Engineers

        Automate away repetition

      • Design Engineers

        Deploy for every idea

  • Enterprise
  • Docs
  • Pricing

Routing Middleware

Execute code before a request is processed on a site, and provide personalization to statically generated content.

Back to Knowledge Base

All Routing Middleware Guides

  • Ensuring safe and effective infrastructure testing
  • How to Fix Sitecore JSS Middleware Performance
  • Migrate to Vercel from Cloudflare
  • How to Optimize Next.js + Sitecore JSS
  • How can I increase the limit of redirects or use dynamic redirects on Vercel?
  • How can I use geolocation IP headers?
  • How can I make my library compatible with the Vercel Edge Functions runtime?
  • A/B Testing on Vercel
  • Filtering query parameters
  • Using the crypto Web API to redirect requests with a unique token

Products

  • AI
  • Enterprise
  • Fluid Compute
  • Next.js
  • Observability
  • Previews
  • Rendering
  • Security
  • Turbo
  • Domains
  • v0

Resources

  • Community
  • Docs
  • Knowledge Base
  • Academy
  • Help
  • Integrations
  • Pricing
  • Resources
  • Solution Partners
  • Startups
  • Templates
    • AI SDK
    • Workflow DevKit
    • Flags SDK
    • Chat SDK
    • Streamdown AI

Company

  • About
  • Blog
  • Careers
  • Changelog
  • Contact Us
  • Customers
  • Events
  • Partners
  • Shipped
  • Privacy Policy

Social

  • GitHub
  • LinkedIn
  • Twitter
  • YouTube

Loading status…

Select a display theme: