nextjs16-proxy-middleware
CommunityProtect routes with a Next.js proxy pattern.
AuthorJordiNodeJS
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill provides a guided approach to implementing the Next.js 16 proxy pattern to replace the legacy middleware.ts for route protection and authentication, simplifying secure routing in serverless environments.
Core Features & Use Cases
- Migration guidance: from middleware.ts to proxy.ts with minimal changes.
- Authentication & route protection: protect selected routes and manage login redirects.
- Matcher configuration examples: practical patterns to target app routes while excluding static assets.
- Migration-ready patterns: best practices for session handling and safe redirects in Next.js 16.
Quick Start
Add a proxy.ts with a proxy() export and a config.matcher to your Next.js project, then test protected routes by starting the dev server and hitting a guarded URL.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: nextjs16-proxy-middleware Download link: https://github.com/JordiNodeJS/.github-config/archive/main.zip#nextjs16-proxy-middleware Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.