Web Frontend2026-05-17
Middleware
Also known as: Middleware / ミドルウェア / Next.js Middleware
A processing layer between HTTP requests and responses. In Next.js (v15: middleware.ts, v16+: proxy.ts), it handles routing control, auth checks, and geo-redirects on the Edge Runtime.
Overview
Next.js Middleware runs before requests reach route handlers. Common uses include auth token validation, i18n redirects, A/B testing, and rate limiting. In Next.js 16, middleware.ts is deprecated and must be renamed to proxy.ts.
Matcher Configuration
Scoping Middleware execution with the matcher setting optimizes performance. The recommended pattern is '/((?!api|trpc|_next|_vercel|.*\\..*).*)'. See Vercel + Next.js 16 complete guide for details.
Related Columns
Web Development
Complete Guide to Building Websites with Vercel and Next.js 16 [2026 Edition]
In 2026, building websites with Next.js 16 and Vercel has dramatically evolved with Turbopack's 400% faster dev startup, React Server Components, and v0 AI generation. Learn everything about professional web development starting from $20/month.
Web Development
Hono + Inertia + React Authentication Guide — Better Auth / Lucia / Session Design Patterns [2026]
A complete guide to authentication done right in Hono + Inertia + React. Compares Better Auth / Lucia / DIY sessions, cookie vs JWT, sharing the auth prop via Inertia, roles and authorization, OAuth providers (Google / GitHub / LINE), and password resets.
Software Dev
Hono Complete Guide — Getting Started with the Ultrafast Multi-Runtime Web Framework [2026]
Hono is a zero-dependency, sub-12KB, Web Standards-based TypeScript-first web framework. The same code runs on Cloudflare Workers, Deno, Bun, and Node.js with 9M+ weekly downloads. Complete guide from setup to production.
Related Terms
Feel free to contact us
Contact Us