nextjs-app-router

Implement Next.js 14+ App Router patterns across multi-project sites.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/okatech-org/gabon-diplomatie --skill nextjs-app-router-okatech-org
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nextjs-app-router
Source: https://github.com/okatech-org/gabon-diplomatie/tree/main/.agent/skills/nextjs-app-router
Command: npx skills add https://github.com/okatech-org/gabon-diplomatie --skill nextjs-app-router-okatech-org

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Architect and implement Next.js 14+ App Router patterns across multi-project sites.

Core Features & Use Cases

  • Supports routing, layout composition, server and client components, and Suspense/Streaming.
  • Provides API routes, middleware, ISR, and image/font optimization strategies for multi-domain apps.
  • Applies Convex preloadQuery integration for server-driven data hydration across apps like digitalium.io, evenement.ga, foot.cd, AGASA Digital.

Quick Start

Set up a Next.js 14+ App Router project with layouts, server components, and middleware to route across domains.

Frequently Asked Questions about nextjs-app-router

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

FAQPage Schema
How do I architect Next.js App Router patterns for multi-domain sites?

To architect Next.js App Router patterns for multi-domain sites, you structure routing, layouts, and middleware to manage requests across different domains. This approach handles server and client components, Suspense, and streaming for robust multi-project applications.

How do I integrate Convex preloadQuery with Next.js server components?

Integrate Convex preloadQuery with Next.js server components to achieve server-driven data hydration. This pattern fetches data on the server before rendering, ensuring client components receive fully hydrated data without additional client-side fetching.

Can I use Next.js middleware to route traffic across multiple projects?

Yes, you can use Next.js middleware to route traffic across multiple projects. Middleware intercepts requests to apply domain-specific logic, directing users to the correct project architecture while maintaining consistent static and dynamic metadata.

What is the best way to handle ISR and static metadata in a Next.js 14 App Router?

The best way to handle ISR and static metadata in a Next.js 14 App Router is by configuring route segments with dynamic metadata functions. This enables incremental static regeneration while ensuring each domain maintains accurate, dynamically generated metadata.

Does Next.js App Router support robust error handling with server actions and middleware?

Yes, Next.js App Router supports robust error handling with server actions and middleware. You define error boundaries within your route segments to catch errors gracefully, while middleware secures routes before server actions execute.

When should I use Suspense and streaming in Next.js server components?

Use Suspense and streaming in Next.js server components when rendering complex layouts or fetching slow data. This pattern streams HTML chunks to the client as they become ready, improving perceived load times for multi-project applications.