New advertisers: 50% off your first month with code FIRSTMONTHSee slots
vercel avatar

Routing Middleware

Vercel-platform request interception layer for rewrites, redirects, geo routing, and A/B tests across frameworks.

skills.sh installs
338
GitHub stars
345
last updated
Jun 3, 2026
View on GitHub

What it does

  • Covers Routing Middleware that runs before the cache on matched requests across Next.js, SvelteKit, Astro, Nuxt, and other frameworks
  • Explains the three "middleware" concepts (Routing Middleware, Next.js 16 Proxy, Vercel Functions) and when each applies
  • Includes helpers from @vercel/functions (next, rewrite, geolocation, ipAddress, waitUntil) and matcher scoping via config.matcher
  • Designed for developers who need platform-level interception on Node.js, Edge, Bun, or Python runtimes

Install

$ npx -y skills add vercel/vercel-plugin --skill routing-middleware -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Vercel Routing Middleware

You are an expert in Vercel Routing Middleware — the platform-level request interception layer.

What It Is

Routing Middleware runs before the cache on every request matching its config. It is a Vercel platform feature (not framework-specific) that works with Next.js, SvelteKit, Astro, Nuxt, or any deployed framework. Built on Fluid Compute.

Details

Repository
github.com/vercel/vercel-plugin
Categories
Backend & APIs, Cloud & Infrastructure
First seen
Jun 3, 2026

More from vercel/vercel-plugin

All 25

Similar to Routing Middleware

More Backend & APIs