What problem does it solve?
This Skill provides a comprehensive guide to Next.js development, offering best practices and tips for writing cleaner, faster, and more maintainable code.
Core Features & Use Cases
- File Conventions: Understand the structure and naming conventions used by Next.js.
- RSC Boundaries: Learn how to detect and prevent invalid patterns in Server/Client component boundaries.
- Async Patterns: Get insights on Next.js 15+ async API changes and how to use them effectively.
- Data Patterns: Explore different data fetching patterns and choose the right one for your use case.
- Error Handling: Discover techniques for handling errors gracefully in Next.js applications.
- Hydration Errors: Find solutions to common React hydration mismatch errors.
- Image Optimization: Optimize images for the web using Next.js' built-in tools.
- Font Optimization: Implement optimized font delivery for your Next.js site.
- Bundling: Address common bundling issues with third-party packages.
- Scripts: Learn how to load third-party scripts in Next.js.
- Self-Hosting: Deploy Next.js outside of Vercel with confidence.
- Suspense Boundaries: Understand when and how to use Suspense boundaries for client-side rendering.
- Parallel & Intercepting Routes: Implement modal patterns with parallel routes and intercepting routes.
- Route Handlers: Create API endpoints with
route.ts files.
- Debug Tricks: Speed up debugging Next.js applications with useful tips.
- Directives: Utilize React and Next.js directives for better code organization and performance.
- Metadata: Add SEO metadata to Next.js pages.
Quick Start
To get started, navigate to the 'web/.agents/skills/next-best-practices' directory within the repository. Review the provided documentation and follow the guidelines to improve your Next.js development practices.