routing-middleware

Intercept and modify web requests with Vercel Routing Middleware.

1|Updated Apr 17, 2026
One-click install
npx skills add https://github.com/esneiderbravo/hackaton --skill routing-middleware-esneiderbravo
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: routing-middleware
Source: https://github.com/esneiderbravo/hackaton/tree/main/.github/skills/routing-middleware
Command: npx skills add https://github.com/esneiderbravo/hackaton --skill routing-middleware-esneiderbravo

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Routing Middleware provides a centralized, platform-level interception layer to inspect and modify requests before they reach the cache, enabling rewrites, redirects, and personalization across frameworks.

Core Features & Use Cases

  • Intercept and transform requests before caching to implement rewrites, redirects, geo-based routing, and A/B experiments.
  • Works with Next.js, SvelteKit, Astro, Nuxt, or any framework across Edge, Node.js, and Bun runtimes.
  • Includes guidance on file naming and runtime configuration to help teams migrate and standardize platform routing rules.

Quick Start

Place a root middleware file (middleware.ts or middleware.js) and configure its runtime to edge, nodejs, or bun to begin intercepting requests.

Frequently Asked Questions about routing-middleware

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up routing middleware for rewrites and redirects on Vercel?▼

To set up routing middleware, place a root middleware file like middleware.ts or middleware.js in your project and configure its runtime to edge, nodejs, or bun to begin intercepting and transforming web requests before caching.

Can I use Vercel middleware with frameworks like SvelteKit, Astro, or Nuxt?▼

Yes, Vercel routing middleware works across multiple frameworks including Next.js, SvelteKit, Astro, and Nuxt, providing a centralized platform-level interception layer for rewrites, redirects, and personalization across different runtimes.

What is platform-level routing middleware and when do I need it?▼

Platform-level routing middleware intercepts and modifies web requests before they reach the cache, enabling rewrites, redirects, geo-based routing, and A/B experiments. You need it when personalizing or transforming requests across frameworks.

Does routing middleware support the Bun runtime?▼

Yes, routing middleware supports the Bun runtime alongside Edge and Node.js, allowing you to configure the runtime environment within your middleware file to execute platform-level request interception and transformation.

What is the best way to standardize proxy routing rules during framework migration?▼

The best way to standardize proxy routing rules is by using a proxy.ts or middleware.ts file to enforce frontmatter with a name and description, establishing consistent platform-level routing rules across frameworks during migration.