Nextjs
Official documentation: https://nextjs.org/docs
Overview
This skill provides comprehensive documentation for nextjs.
Total references: 66 files (~439,464 tokens)
Topics covered: New User-Agent Helper, Optional Props, Router navigation tracking, Running your tests, getServerSideProps return values, Using App Router together with Pages Router, Check your Custom App File pages_appjs, Using getStaticProps to fetch data from a CMS, TryexperimentalwebpackMemoryOptimizations, Caching APIs, generateViewportfunction, Guides...
Reference Files
Load only the reference files relevant to the user's question:
App
- create and more (~7,449 tokens)
- Topics: Reference, Examples, Reference
- Form Component (~1,583 tokens)
- Topics: Reference, Examples
- Image Component (~7,364 tokens)
- Topics: Reference, Functions, Known browser bugs
- Link Component and more (~7,949 tokens)
- Topics: Reference, Examples, Version history
- assetPrefix and more (~7,140 tokens)
- Topics: Set up a CDN, Usage, Usage
- headers and more (~7,963 tokens)
- Topics: Header Overriding Behavior, Path Matching, Header Cookie and Query Matching
- reactCompiler and more (~7,698 tokens)
- Topics: How It Works, Annotations, Path Matching
- turbopack and more (~5,895 tokens)
- Topics: Reference, Examples, Version History
- TypeScript and more (~7,633 tokens)
- Topics: IDE Plugin, End-to-End Type Safety, Route-Aware Type Helpers
- use cache and more (~7,173 tokens)
- Topics: Usage, Howuse cacheworks, Serialization
- Dynamic Route Segments and more (~7,536 tokens)
- Topics: Convention, Behavior, Examples
- loading.js and more (~7,515 tokens)
- Topics: Reference, Behavior, Platform Support
- page.js and more (~7,329 tokens)
- Topics: Good to know, Reference, Examples
- Route Segment Config and more (~7,017 tokens)
- Topics: Options, Version History, Reference
- cacheLife and more (~8,002 tokens)
- Topics: Usage, Reference, Examples
- generateMetadata and more (~6,632 tokens)
- Topics: Themetadataobject, generateMetadatafunction, Reference
- generateStaticParams and more (~7,831 tokens)
- Topics: Parameters, Returns, Single Dynamic Segment
- refresh and more (~7,130 tokens)
- Topics: Usage, Parameters, Returns
- useReportWebVitals and more (~7,553 tokens)
- Topics: useReportWebVitals, Web Vitals, Sending results to external systems
- Cache Components and more (~7,400 tokens)
- Topics: How rendering works with Cache Components, Automatically prerendered content, Defer rendering to request time
- Error Handling and more (~6,639 tokens)
- Topics: Handling expected errors, Handling uncaught exceptions, API Reference
- Layouts and Pages and more (~5,423 tokens)
- Topics: Creating a page, Creating a layout, Creating a nested route
- Project structure and organization and more (~7,421 tokens)
- Topics: Folder and file conventions, Organizing your project, Examples
- Updating Data and more (~6,129 tokens)
- Topics: What are Server Functions, Creating Server Functions, Invoking Server Functions
- How to implement authentication in Next.js (~5,852 tokens)
- Topics: Authentication, Session Management, Authorization
- How to use Next.js as a backend for your frontend (~2,863 tokens)
- Topics: Public Endpoints, Content types, Manipulating data
- Caching in Next.js and more (~7,207 tokens)
- Topics: Overview, Rendering Strategies, Request Memoization
- How to set a Content Security Policy (CSP) for your Next.js application and more (~6,955 tokens)
- Topics: Nonces, Static vs Dynamic Rendering with CSP, Without Nonces
- How to use debugging tools with Next.js and more (~7,849 tokens)
- Topics: Debugging with VS Code, Using the Debugger in Jetbrains WebStorm, Debugging with Browser DevTools
- Internationalization and more (~5,497 tokens)
- Topics: Terminology, Routing Overview, Localization
- How to use markdown and MDX in Next.js and more (~4,245 tokens)
- Topics: Install dependencies, Configurenextconfigmjs, Add anmdx-componentstsxfile
- How to migrate from Pages to the App Router (~5,343 tokens)
- Topics: Upgrading, Next Steps, Upgrading New Features
- How to migrate from Create React App to Next.js and more (~7,801 tokens)
- Topics: Why Switch, Migration Steps, Additional Considerations
- How to set up instrumentation with OpenTelemetry and more (~6,431 tokens)
- Topics: Getting Started, Testing your instrumentation, Deployment
- How to build a Progressive Web Application (PWA) with Next.js and more (~7,764 tokens)
- Topics: Creating a PWA with Nextjs, Extending your PWA, Example
- How to self and more (~7,174 tokens)
- Topics: Reverse Proxy, Image Optimization, Proxy
- How to set up Jest with Next.js and more (~7,683 tokens)
- Topics: Quickstart, Manual setup, Optional Handling Absolute Imports and Module Path Aliases
- How to upgrade to version 15 and more (~7,993 tokens)
- Topics: Upgrading from 14 to 15, React 19, Async Request APIs Breaking change
- How to use and optimize videos and more (~3,186 tokens)
- Topics: Usingvideoandiframe, Self-hosted videos, Resources
Architecture
- Accessibility and more (~4,317 tokens)
- Topics: Route Announcements, Linting, Accessibility Resources
Community
- Docs Contribution Guide and more (~3,532 tokens)
- Topics: Why Contribute, How to Contribute, File Structure
General
- App Router and more (~1,428 tokens)
- Topics: Next Steps, Contributing, Discussions
Messages
- Addressing "App Container Deprecated" Error in Next.js and more (~7,628 tokens)
- Topics: Why This Error Occurred, Possible Ways to Fix It, Useful Links
- No async Client Component and more (~5,168 tokens)
- Topics: Why This Error Occurred, Possible Ways to Fix It, Why This Error Occurred
Pages
- create and more (~7,497 tokens)
- Topics: Reference, Examples, Reference
- Form and more (~6,414 tokens)
- Topics: Reference, Avoid duplicated tags, Use minimal nesting
- Image (~7,289 tokens)
- Topics: Reference, Functions, Known browser bugs
- Link and more (~7,536 tokens)
- Topics: Reference, Examples, Version history
- assetPrefix and more (~7,321 tokens)
- Topics: Set up a CDN, Version History, Disabling compression
- output and more (~7,442 tokens)
- Topics: How it Works, Automatically Copying Traced Files, Caveats
- turbopack and more (~7,956 tokens)
- Topics: Reference, Examples, Version History
- Edge Runtime and more (~7,672 tokens)
- Topics: Caveats, Reference, Exports
- getServerSideProps and more (~7,993 tokens)
- Topics: Context parameter, getServerSideProps return values, Version History
- useRouter and more (~7,801 tokens)
- Topics: routerobject, Thenextcompatrouterexport, Potential ESLint errors
- Client and more (~7,246 tokens)
- Topics: Client-side data fetching with useEffect, Client-side data fetching with SWR, Example
- API Routes and more (~7,133 tokens)
- Topics: Parameters, HTTP Methods, Request Helpers
- How to use CSS in your application and more (~6,126 tokens)
- Topics: Tailwind CSS, CSS Modules, Global CSS
- How to implement authentication in Next.js and more (~7,681 tokens)
- Topics: Authentication, Session Management, Authorization
- How to preview content with Draft Mode in Next.js and more (~6,081 tokens)
- Topics: Step 1 Create and access the API route, Step 2 UpdategetStaticProps, More Details
- How to implement internationalization in Next.js and more (~5,786 tokens)
- Topics: Getting started, Locale Strategies, Automatic Locale Detection
- How to migrate from Pages to the App Router (~5,353 tokens)
- Topics: Upgrading, Next Steps, Upgrading New Features
- How to migrate from Create React App to Next.js and more (~7,696 tokens)
- Topics: Why Switch, Migration Steps, Additional Considerations
- How to instrument your Next.js app with OpenTelemetry and more (~7,377 tokens)
- Topics: Getting Started, Testing your instrumentation, Deployment
- How to handle redirects in Next.js and more (~7,421 tokens)
- Topics: useRouterhook, redirectsinnextconfigjs, NextResponseredirectin Proxy
- How to set up Jest with Next.js and more (~7,957 tokens)
- Topics: Quickstart, Manual setup, Setting up Jest with Babel
- How to upgrade to version 11 and more (~5,366 tokens)
- Topics: React 16 to 17, Upgrading from 12 to 13, Migrating shared features
Usage Guidelines
- Identify relevant sections - Match the user's question to the appropriate reference file(s)
- Load minimally - Only read files directly relevant to the question to conserve context
- Cite sources - Reference specific sections when answering
- Combine knowledge - For complex questions, you may need multiple reference files
When to use each reference:
- App: App-related features and documentation
- Architecture: Architecture-related features and documentation
- Community: Community-related features and documentation
- General: General documentation, overview, and getting started
- Messages: Messages-related features and documentation
- Pages: Pages-related features and documentation