nextjs-16

Create proxy.ts and migrate middleware for Next.js 16 route protection and caching strategies.

9|2|Updated Jan 31, 2026
One-click install
npx skills add https://github.com/aussiegingersnap/cursor-skills --skill nextjs-16-aussiegingersnap
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nextjs-16
Source: https://github.com/aussiegingersnap/cursor-skills/tree/main/skills/nextjs-16
Command: npx skills add https://github.com/aussiegingersnap/cursor-skills --skill nextjs-16-aussiegingersnap

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides patterns and conventions for Next.js 16 projects, including the new proxy.ts system, App Router usage, and caching strategies to simplify setup and migrations.

Core Features & Use Cases

  • Proxy.ts replaces middleware with a Node.js-based proxy for route protection
  • App Router conventions, route grouping, and page organization
  • Caching strategies and performance optimizations, including per-route and static caching
  • Migration guidance from middleware to proxy.ts and related config changes

Quick Start

Create a proxy.ts at your project root and migrate existing middleware logic to proxy.ts to enable Next.js 16 route protection and App Router patterns.

Frequently Asked Questions about nextjs-16

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

FAQPage Schema
How do I migrate middleware to proxy.ts in Next.js 16?

To migrate middleware to proxy.ts in Next.js 16, create a root proxy.ts file and transfer your existing middleware logic into it. This enables Node.js-based route protection and aligns with the new App Router conventions.

What is the proxy.ts file used for in Next.js 16?

The proxy.ts file in Next.js 16 replaces traditional middleware with a Node.js-based proxy. It handles route protection, authentication flows, and request routing within the App Router architecture.

How do I configure App Router conventions and route grouping in Next.js 16?

Configuring App Router conventions in Next.js 16 involves following recommended project structure patterns for page organization and route grouping. This Skill provides the structural patterns needed to organize routes effectively.

What are the recommended caching strategies for Next.js 16 production apps?

Recommended caching strategies for Next.js 16 production apps include per-route caching and static caching optimizations. These strategies improve performance by controlling how routes are cached and served.

Can I use Next.js 16 proxy.ts for authentication flows and route protection?

Yes, you can use proxy.ts for authentication flows and route protection in Next.js 16. The Node.js-based proxy system replaces middleware to secure routes and manage access control across your application.

Do I need to update next.config.ts when migrating to Next.js 16 patterns?

Yes, you need to align next.config.ts when migrating to Next.js 16 patterns. Updating the configuration ensures compatibility with the new proxy.ts system, App Router conventions, and optimized caching strategies.