Skip to content
Kitbay

routing-middleware

Apache-2.0Updated on Nov 10, 2026333GitHub stars

A Vercel plugin skill about Routing Middleware, Vercel's layer that runs before the cache on every matching request, whatever framework the app uses.

What the skill teaches

A Vercel plugin skill about Routing Middleware, Vercel's layer that runs before the cache on every matching request, whatever framework the app uses. It first separates this platform feature from framework middleware such as Next.js proxy.ts, then covers the Edge, Node.js, Bun and Python runtimes, a basic example, helper functions from @vercel/functions, matcher configuration, common patterns such as rewrites, redirects and personalisation, request limits, how it compares with Vercel's other routing options, configuration in vercel.ts and when not to use it.

Capabilities

  • Write Vercel Routing Middleware for rewrites and redirects
  • Configure which paths the middleware runs on
  • Choose between Routing Middleware and framework middleware
  • Pick a runtime for middleware code