nextjs-16-proxy-patterns

Document Next.js 16 proxy patterns replacing middleware with proxy.ts.

5|Updated Dec 22, 2025
One-click install
npx skills add https://github.com/MuhammedSuhaib/LevelUpSpeckit-Plus --skill nextjs-16-proxy-patterns
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nextjs-16-proxy-patterns
Source: https://github.com/MuhammedSuhaib/LevelUpSpeckit-Plus/tree/main/Skill+SubAgents/skills/claude-nextjs-skills/nextjs-16-proxy-patterns
Command: npx skills add https://github.com/MuhammedSuhaib/LevelUpSpeckit-Plus --skill nextjs-16-proxy-patterns

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill documents Next.js 16 proxy patterns to replace older middleware usage, including proxy.ts, async request APIs, and boundary intercept patterns at the network edge.

Core Features & Use Cases

  • Proxy pattern: Replace middleware with proxy.ts and update runtime expectations.
  • Authentication & headers: Intercept and modify requests at the network boundary.
  • Configuration migration: Understand how to adapt to Next.js 16 proxy config.

Quick Start

  1. Rename middleware.ts to proxy.ts and update exports to proxy().
  2. Implement authentication checks in proxy.ts.
  3. Adapt your config to Next.js 16 proxy conventions.