
Routing Middleware
Intercepts requests at the platform level before they hit your cache or framework, so you can rewrite paths, inject headers, do geo-routing, or run A/B tests. Works with any framework Vercel deploys, not just Next.js. Runs on Edge, Node.js, or Bun runtimes. One gotcha: Next.js 16 renames middleware.ts to proxy.ts and forces Node.js runtime, which trips people up if they're importing from next/server. The skill catches that and chains to Next.js guidance. Use this when you need request-level control that sits above your application code, like redirecting by country or adding security headers before anything else runs.
- skills.sh installs
- 338
- GitHub stars
- 183
- last updated
- Jun 3, 2026
Install
$ npx -y skills add vercel/vercel-plugin --skill routing-middleware --agent claude-codeInstalls into .claude/skills of the current project.
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.
Sponsors
Details
- Repository
- github.com/vercel/vercel-plugin
- Categories
- Backend & APIs, Cloud & Infrastructure
- First seen
- Jun 3, 2026
More from vercel/vercel-plugin
All 25- Auth326
- Vercel Storage326
- Vercel Agent317
- Bootstrap315
- Chat Sdk315
- Verification315
- Workflow313
- Runtime Cache312
- Vercel Sandbox308
- Knowledge Update301
- Marketplace300
- Next Forge191
- Nextjs629
- Ai Sdk544
- React Best Practices491
- Deployments Cicd484
- Shadcn458
- Vercel Cli432
- Turbopack429
- Ai Gateway423
- Env Vars422
- Vercel Functions410
- Next Cache Components385
- Next Upgrade368