# Next.js

> Search the titles, descriptions, and filenames for this version of Next.js. Open a page using its path relative to this index.

## App Router

- [Installation](app/getting-started/installation.md): Learn how to create a new Next.js application with the `create-next-app` CLI, and set up TypeScript, ESLint, and Module Path Aliases.
- [Project structure and organization](app/getting-started/project-structure.md): Learn the folder and file conventions in Next.js, and how to organize your project.
- [Layouts and Pages](app/getting-started/layouts-and-pages.md): Learn how to create your first pages and layouts, and link between them with the Link component.
- [Linking and Navigating](app/getting-started/linking-and-navigating.md): Learn how the built-in navigation optimizations work, including prefetching, prerendering, and client-side navigation, and how to optimize navigation for dynamic routes and slow networks.
- [Server and Client Components](app/getting-started/server-and-client-components.md): Learn how you can use React Server and Client Components to render parts of your application on the server or the client.
- [Fetching Data](app/getting-started/fetching-data.md): Learn how to fetch data and stream content that depends on data.
- [Mutating Data](app/getting-started/mutating-data.md): Learn how to mutate data using Server Functions and Server Actions in Next.js.
- [Caching](app/getting-started/caching.md): Learn how to cache data and UI in Next.js
- [Revalidating](app/getting-started/revalidating.md): Learn how to revalidate cached data using time-based and on-demand strategies.
- [Error Handling](app/getting-started/error-handling.md): Learn how to display expected errors and handle uncaught exceptions.
- [CSS](app/getting-started/css.md): Learn about the different ways to add CSS to your application, including Tailwind CSS, CSS Modules, Global CSS, and more.
- [Image Optimization](app/getting-started/images.md): Learn how to optimize images in Next.js
- [Font Optimization](app/getting-started/fonts.md): Learn how to optimize fonts in Next.js
- [Metadata and OG images](app/getting-started/metadata-and-og-images.md): Learn how to add metadata to your pages and create dynamic OG images.
- [Route Handlers](app/getting-started/route-handlers.md): Create custom request handlers with Next.js Route Handlers using the Web Request and Response APIs.
- [Proxy](app/getting-started/proxy.md): Use Next.js Proxy to rewrite, redirect, modify headers, or respond directly before a request completes.
- [Deploying](app/getting-started/deploying.md): Learn how to deploy your Next.js application.
- [Upgrading](app/getting-started/upgrading.md): Learn how to upgrade your Next.js application to the latest version or canary.
- [Getting Started](app/getting-started/index.md): Learn how to create full-stack web applications with the Next.js App Router.
- [Adopting Partial Prefetching](app/guides/adopting-partial-prefetching.md): Learn how to enable Partial Prefetching and what changes for `<Link>`.
- [How Next.js supports AI coding agents](app/guides/ai-agents.md): Learn how Next.js helps AI coding agents use current framework guidance, inspect applications, verify changes, and report issues.
- [How to add analytics to your Next.js application](app/guides/analytics.md): Measure and track page performance using Next.js Speed Insights
- [How to implement authentication with Cache Components](app/guides/authentication-with-cache-components.md): Learn how to read the user session, show authenticated UI without slowing down the page, and cache data derived from the session when Cache Components is enabled.
- [How to implement authentication in Next.js](app/guides/authentication.md): Learn how to implement authentication in your Next.js application.
- [How to use Next.js as a backend for your frontend](app/guides/backend-for-frontend.md): Learn how to use Next.js as a backend framework
- [How to run background jobs and long-running tasks](app/guides/background-jobs.md): Learn when to use `after` for best-effort work, and how to use Workflow SDK for durable background jobs and long-running tasks in Next.js.
- [Building your application](app/guides/building.md): Learn what happens when you run next build and how to read the build output.
- [Caching and Revalidating (Previous Model)](app/guides/caching-without-cache-components.md): Learn how to cache and revalidate data using fetch options, unstable_cache, and route segment configs for projects not using Cache Components.
- [Using a CDN with Next.js](app/guides/cdn-caching.md): Learn how CDN caching works with Next.js, including what works today, cache variability, and the direction toward pathname-based cache keying.
- [How to configure Continuous Integration (CI) build caching](app/guides/ci-build-caching.md): Learn how to configure CI to cache Next.js builds
- [Client-side data fetching](app/guides/client-side-data-fetching/index.md): Fetch data in Client Components with a data-fetching library, optionally provide initial data from a Server Component, and coordinate server and client caches.
- [How to fetch client-side data with SWR](app/guides/client-side-data-fetching/swr.md): Fetch client-side data with SWR, optionally provide initial data from a Server Component, and coordinate server and client caches.
- [How to fetch client-side data with TanStack Query](app/guides/client-side-data-fetching/tanstack-query.md): Fetch client-side data with TanStack Query, optionally provide initial data from a Server Component, and coordinate server and client caches.
- [How to set a Content Security Policy (CSP) for your Next.js application](app/guides/content-security-policy.md): Learn how to set a Content Security Policy (CSP) for your Next.js application.
- [How to use CSS-in-JS libraries](app/guides/css-in-js.md): Use CSS-in-JS libraries with Next.js
- [How to set up a custom server in Next.js](app/guides/custom-server.md): Start a Next.js app programmatically using a custom server.
- [How to use a custom webpack version in Next.js](app/guides/custom-webpack.md): Use your application's webpack installation with Next.js instead of the bundled version.
- [How to think about data security in Next.js](app/guides/data-security.md): Learn the built-in data security features in Next.js and learn best practices for protecting your application's data.
- [How to use debugging tools with Next.js](app/guides/debugging.md): Learn how to debug your Next.js application with VS Code, Chrome DevTools, or Firefox DevTools.
- [Deploying Next.js to different platforms](app/guides/deploying-to-platforms.md): Understand which Next.js features require specific platform capabilities and how to choose the right deployment target.
- [How to use Next.js DevTools](app/guides/devtools.md): Use Next.js DevTools to inspect diagnostics, preview loading states, and move or hide the development indicator when it covers your app.
- [How to preview content with Draft Mode in Next.js](app/guides/draft-mode.md): Bypass Next.js caching for a request so editors can preview unpublished content from a headless CMS.
- [How to use environment variables in Next.js](app/guides/environment-variables.md): Learn to add and access environment variables in your Next.js application.
- [How to create forms with Server Actions](app/guides/forms.md): Learn how to create forms in Next.js with React Server Actions.
- [How revalidation works in Next.js](app/guides/how-revalidation-works.md): A deep dive into how Next.js revalidates cached content, including the tag system, cache consistency, and multi-instance coordination.
- [Incremental Static Regeneration with Cache Components](app/guides/incremental-static-regeneration-cache-components.md): Learn how to prerender a subset of dynamic routes, serve App Shells for the rest, and upgrade them after the first visit.
- [How to implement Incremental Static Regeneration (ISR)](app/guides/incremental-static-regeneration.md): Learn how to create or update static pages at runtime with Incremental Static Regeneration.
- [Guides](app/guides/index.md): Learn how to implement common patterns and real-world use cases using Next.js
- [Ensuring instant navigations](app/guides/instant-navigation.md): Learn how to structure your app to prefetch and prerender more content, providing instant page loads and client navigations.
- [How to set up instrumentation](app/guides/instrumentation.md): Learn how to use instrumentation to run code at server startup in your Next.js app
- [Building interactive apps](app/guides/interactive-apps.md): Learn how to build responsive interactions with Server Functions, transitions, optimistic UI, and pending feedback.
- [Internationalization](app/guides/internationalization.md): Add support for multiple languages with internationalized routing and localized content.
- [How to implement JSON-LD in your Next.js application](app/guides/json-ld.md): Learn how to add JSON-LD to your Next.js application to describe your content to search engines and AI.
- [Keeping pages static](app/guides/keeping-pages-static.md): Keep selected route output static as your app changes.
- [How to lazy load Client Components and libraries](app/guides/lazy-loading.md): Lazy load imported libraries and React Components to improve your application's loading performance.
- [How to optimize your local development environment](app/guides/local-development.md): Learn how to optimize your local development environment with Next.js.
- [Connecting coding agents to the Next.js MCP server](app/guides/mcp.md): Learn how to give coding agents access to your running Next.js app through the built-in MCP endpoint.
- [How to use markdown and MDX in Next.js](app/guides/mdx.md): Learn how to configure MDX and use it in your Next.js apps.
- [How to optimize memory usage](app/guides/memory-usage.md): Optimize memory used by your application in development and production.
- [Migrating to Cache Components](app/guides/migrating-to-cache-components.md): Learn how to migrate from route segment configs to Cache Components in Next.js.
- [How to migrate from Pages to the App Router](app/guides/migrating/app-router-migration.md): Learn how to upgrade your existing Next.js application from the Pages Router to the App Router.
- [How to migrate from Create React App to Next.js](app/guides/migrating/from-create-react-app.md): Learn how to migrate your existing React application from Create React App to Next.js.
- [How to migrate from Vite to Next.js](app/guides/migrating/from-vite.md): Learn how to migrate your existing React application from Vite to Next.js.
- [Migrating](app/guides/migrating/index.md): Learn how to migrate from popular frameworks to Next.js
- [How to build multi-tenant apps in Next.js](app/guides/multi-tenant.md): Learn how to build multi-tenant apps with the App Router.
- [How to build micro-frontends using multi-zones and Next.js](app/guides/multi-zones.md): Learn how to build micro-frontends using Next.js Multi-Zones to deploy multiple Next.js apps under a single domain.
- [Handling connectivity drops](app/guides/offline-support.md): How a Next.js app can recover when the network drops mid-fetch or mid-Server Action, and how to communicate that state to the user.
- [How to set up instrumentation with OpenTelemetry](app/guides/open-telemetry.md): Learn how to instrument your Next.js app with OpenTelemetry.
- [Optimizing prefetching](app/guides/optimizing-prefetching.md): Resolve per-link URL data, include session data in the App Shell, or defer expensive work to a later navigation stage.
- [Optimizing the static shell](app/guides/optimizing-the-static-shell.md): Learn how to use Cache Components to keep layouts, navigation, and useful loading states available while request-time content streams.
- [Optimizing package bundling](app/guides/package-bundling.md): Learn how to analyze and optimize your application's server and client bundles with the Next.js Bundle Analyzer for Turbopack, and the `@next/bundle-analyzer` plugin for Webpack.
- [Implementing Partial Prerendering on your platform](app/guides/ppr-platform-guide.md): A guide for platform engineers on implementing PPR support, from basic origin rendering to optimized CDN integration.
- [Prefetching](app/guides/prefetching.md): Learn how to configure prefetching in Next.js
- [How Next.js preserves UI state with Activity](app/guides/preserving-ui-state.md): Learn how React's Activity component preserves UI state across navigations in Next.js and how to control what resets.
- [How to prevent flash before hydration](app/guides/preventing-flash-before-hydration.md): Learn how to prevent a flash of unstyled content (FOUC) by correcting server-rendered HTML, such as a dark mode theme, before the browser paints.
- [How to optimize your Next.js application for production](app/guides/production-checklist.md): Recommendations to ensure the best performance and user experience before taking your Next.js application to production.
- [How to build a Progressive Web Application (PWA) with Next.js](app/guides/progressive-web-apps.md): Learn how to build a Progressive Web Application (PWA) with Next.js.
- [Building public pages](app/guides/public-static-pages.md): Learn how to build public, "static" pages that share data across users, such as landing pages, list pages (products, blogs, etc.), marketing and news sites.
- [How to handle redirects in Next.js](app/guides/redirecting.md): Learn the different ways to handle redirects in Next.js.
- [Next.js Rendering Philosophy](app/guides/rendering-philosophy.md): Learn how Next.js treats static and dynamic rendering as a spectrum at the component level, and what this means for deployment.
- [Diagnosing slow development requests with Request Insights](app/guides/request-insights.md): Find what delays server responses during development with Request Insights.
- [How to use Sass](app/guides/sass.md): Style your Next.js application using Sass.
- [How to load and optimize scripts](app/guides/scripts.md): Optimize 3rd party scripts with the built-in Script component.
- [How to self-host your Next.js application](app/guides/self-hosting.md): Learn how to self-host your Next.js application on a Node.js server, Docker image, or static HTML files (static exports).
- [Server Actions and Mutations](app/guides/server-actions.md): How Server Actions work in Next.js, including the single-roundtrip response model, sequential dispatch, security, and caching integration.
- [The Server and Client Boundary](app/guides/server-and-client-boundary.md): Learn where Server and Client Components run in the App Router and how the boundary between them works.
- [How to build single-page applications with Next.js](app/guides/single-page-applications.md): Next.js fully supports building Single-Page Applications (SPAs).
- [How to create a static export of your Next.js application](app/guides/static-exports.md): Next.js enables starting as a static site or Single-Page Application (SPA), then later optionally upgrading to use features that require a server.
- [Streaming](app/guides/streaming.md): Learn how streaming works in Next.js and how to use it to progressively render UI as data becomes available.
- [How to install Tailwind CSS v3 in your Next.js application](app/guides/tailwind-v3-css.md): Style your Next.js Application using Tailwind CSS v3 for broader browser support.
- [How to set up Cypress with Next.js](app/guides/testing/cypress.md): Learn how to set up Cypress with Next.js for End-to-End (E2E) and Component Testing.
- [Testing](app/guides/testing/index.md): Learn how to set up Next.js with four commonly used testing tools — Cypress, Playwright, Vitest, and Jest.
- [How to set up Jest with Next.js](app/guides/testing/jest.md): Learn how to set up Jest with Next.js for Unit Testing and Snapshot Testing.
- [How to set up Playwright with Next.js](app/guides/testing/playwright.md): Learn how to set up Playwright with Next.js for End-to-End (E2E) Testing.
- [How to set up Vitest with Next.js](app/guides/testing/vitest.md): Learn how to set up Vitest with Next.js for Unit Testing.
- [How to optimize third-party libraries](app/guides/third-party-libraries.md): Optimize the performance of third-party libraries in your application with the `@next/third-parties` package.
- [Upgrade with a coding agent](app/guides/upgrading/agent-upgrade.md): Use a coding agent to upgrade and verify a Next.js app.
- [Codemods](app/guides/upgrading/codemods.md): Use codemods to upgrade your Next.js codebase when new features are released.
- [Upgrade Guides](app/guides/upgrading/index.md): Learn how to upgrade to the latest versions of Next.js.
- [How to upgrade to version 14](app/guides/upgrading/version-14.md): Upgrade your Next.js Application from Version 13 to 14.
- [How to upgrade to version 15](app/guides/upgrading/version-15.md): Upgrade your Next.js Application from Version 14 to 15.
- [How to upgrade to version 16](app/guides/upgrading/version-16.md): Upgrade your Next.js Application from Version 15 to 16.
- [How to use and optimize videos](app/guides/videos.md): Recommendations and best practices for optimizing videos in your Next.js application.
- [Designing view transitions](app/guides/view-transitions.md): Learn how to use view transitions to communicate meaning during navigation, loading, and content changes in a Next.js app.
- [Directives](app/api-reference/directives/index.md): Learn how React and Next.js directives define client entry points, Server Functions, and cached output.
- [use cache: private](app/api-reference/directives/use-cache-private.md): Learn how to use the "use cache: private" directive to cache functions that access runtime request APIs.
- [use cache: remote](app/api-reference/directives/use-cache-remote.md): Learn how to use the "use cache: remote" directive for persistent, shared caching using remote cache handlers.
- [use cache](app/api-reference/directives/use-cache.md): Learn how to use the "use cache" directive to cache data in your Next.js application.
- [use client](app/api-reference/directives/use-client.md): Learn how to use the use client directive to render a component on the client.
- [use server](app/api-reference/directives/use-server.md): Learn how to use the use server directive to execute code on the server.
- [Font Module](app/api-reference/components/font.md): Optimizing loading web fonts with the built-in `next/font` loaders.
- [Form Component](app/api-reference/components/form.md): Learn how to use the `<Form>` component to handle form submissions and search params updates with client-side navigation.
- [Image Component](app/api-reference/components/image.md): Optimize Images in your Next.js Application using the built-in `next/image` Component.
- [Components](app/api-reference/components/index.md): API Reference for Next.js built-in components.
- [Link Component](app/api-reference/components/link.md): Enable fast client-side navigation with the built-in `next/link` component.
- [Script Component](app/api-reference/components/script.md): Optimize third-party scripts in your Next.js application using the built-in `next/script` Component.
- [favicon, icon, and apple-icon](app/api-reference/file-conventions/metadata/app-icons.md): API Reference for the Favicon, Icon and Apple Icon file conventions.
- [Metadata Files API Reference](app/api-reference/file-conventions/metadata/index.md): API documentation for the metadata file conventions.
- [manifest.json](app/api-reference/file-conventions/metadata/manifest.md): API Reference for manifest.json file.
- [opengraph-image and twitter-image](app/api-reference/file-conventions/metadata/opengraph-image.md): API Reference for the Open Graph Image and Twitter Image file conventions.
- [robots.txt](app/api-reference/file-conventions/metadata/robots.md): API Reference for robots.txt file.
- [sitemap.xml](app/api-reference/file-conventions/metadata/sitemap.md): API Reference for the sitemap.xml file.
- [dynamicParams](app/api-reference/file-conventions/route-segment-config/dynamicParams.md): API reference for the dynamicParams route segment config option.
- [ensureStatic](app/api-reference/file-conventions/route-segment-config/ensureStatic.md): Require selected route output to remain static instead of rendering per request with the ensureStatic route segment config.
- [Route Segment Config](app/api-reference/file-conventions/route-segment-config/index.md): Learn about how to configure options for Next.js route segments.
- [instant](app/api-reference/file-conventions/route-segment-config/instant.md): Configure instant navigation validation for a route segment.
- [maxDuration](app/api-reference/file-conventions/route-segment-config/maxDuration.md): API reference for the maxDuration route segment config option.
- [preferredRegion (deprecated)](app/api-reference/file-conventions/route-segment-config/preferredRegion.md): API reference for the preferredRegion route segment config option.
- [prefetch](app/api-reference/file-conventions/route-segment-config/prefetch.md): Configure how a route segment is prefetched during client navigation.
- [runtime](app/api-reference/file-conventions/route-segment-config/runtime.md): API reference for the runtime route segment config option.
- [default.js](app/api-reference/file-conventions/default.md): API Reference for the default.js file.
- [Dynamic Route Segments](app/api-reference/file-conventions/dynamic-routes.md): Use Dynamic Segments to read URL path params and generate routes from dynamic data.
- [error.js](app/api-reference/file-conventions/error.md): API reference for the error.js special file.
- [forbidden.js](app/api-reference/file-conventions/forbidden.md): API reference for the forbidden.js special file.
- [File-system conventions](app/api-reference/file-conventions/index.md): API Reference for Next.js file-system conventions.
- [instrumentation-client.js](app/api-reference/file-conventions/instrumentation-client.md): Learn how to add client-side instrumentation to track and monitor your Next.js application's frontend performance.
- [instrumentation.js](app/api-reference/file-conventions/instrumentation.md): API reference for the instrumentation.js file.
- [Intercepting Routes](app/api-reference/file-conventions/intercepting-routes.md): Use intercepting routes to load a new route within the current layout while masking the browser URL, useful for advanced routing patterns such as modals.
- [layout.js](app/api-reference/file-conventions/layout.md): API reference for the layout.js file.
- [loading.js](app/api-reference/file-conventions/loading.md): API reference for the loading.js file.
- [mdx-components.js](app/api-reference/file-conventions/mdx-components.md): API reference for the mdx-components.js file.
- [not-found.js](app/api-reference/file-conventions/not-found.md): API reference for the not-found.js file.
- [page.js](app/api-reference/file-conventions/page.md): API reference for the page.js file.
- [Parallel Routes](app/api-reference/file-conventions/parallel-routes.md): Simultaneously render one or more pages in the same view that can be navigated independently. A pattern for highly dynamic applications.
- [proxy.go](app/api-reference/file-conventions/proxy-go.md): API reference for writing experimental Go Proxy (middleware) with the proxy.go file convention.
- [proxy.js](app/api-reference/file-conventions/proxy.md): API reference for the proxy.js file.
- [public Folder](app/api-reference/file-conventions/public-folder.md): Next.js allows you to serve static files, like images, in the public directory. You can learn how it works here.
- [route.go](app/api-reference/file-conventions/route-go.md): API reference for building experimental Go API endpoints with the route.go file convention.
- [Route Groups](app/api-reference/file-conventions/route-groups.md): Route Groups can be used to partition your Next.js application into different sections.
- [route.js](app/api-reference/file-conventions/route.md): API reference for the route.js special file.
- [src Folder](app/api-reference/file-conventions/src-folder.md): Save pages under the `src` folder as an alternative to the root `pages` directory.
- [template.js](app/api-reference/file-conventions/template.md): API Reference for the template.js file.
- [unauthorized.js](app/api-reference/file-conventions/unauthorized.md): API reference for the unauthorized.js special file.
- [after](app/api-reference/functions/after.md): API Reference for the after function.
- [cacheLife](app/api-reference/functions/cacheLife.md): Learn how to use the cacheLife function to set the cache expiration time for a cached function or component.
- [cacheTag](app/api-reference/functions/cacheTag.md): Learn how to use the cacheTag function to manage cache invalidation in your Next.js application.
- [catchError](app/api-reference/functions/catchError.md): API Reference for the catchError function.
- [connection](app/api-reference/functions/connection.md): API Reference for the connection function.
- [cookies](app/api-reference/functions/cookies.md): API Reference for the cookies function.
- [draftMode](app/api-reference/functions/draft-mode.md): API Reference for the draftMode function.
- [fetch](app/api-reference/functions/fetch.md): API reference for the extended fetch function.
- [forbidden](app/api-reference/functions/forbidden.md): API Reference for the forbidden function.
- [generateImageMetadata](app/api-reference/functions/generate-image-metadata.md): Learn how to generate multiple images in a single Metadata API special file.
- [generateMetadata](app/api-reference/functions/generate-metadata.md): Learn how to add Metadata to your Next.js application for improved search engine optimization (SEO) and web shareability.
- [generateSitemaps](app/api-reference/functions/generate-sitemaps.md): Learn how to use the generateSitemaps function to create multiple sitemaps for your application.
- [generateStaticParams](app/api-reference/functions/generate-static-params.md): API reference for the generateStaticParams function.
- [generateViewport](app/api-reference/functions/generate-viewport.md): API Reference for the generateViewport function.
- [headers](app/api-reference/functions/headers.md): API reference for the headers function.
- [next/experimental/image-optimizer-transform](app/api-reference/functions/image-optimizer-transform.md): API Reference for the next/experimental/image-optimizer-transform module, the standalone sharp-based image resizing and format conversion pipeline behind Next.js Image Optimization.
- [ImageResponse](app/api-reference/functions/image-response.md): API Reference for the ImageResponse constructor.
- [Functions](app/api-reference/functions/index.md): API Reference for Next.js Functions and Hooks.
- [io](app/api-reference/functions/io.md): API Reference for the io function.
- [navigation](app/api-reference/functions/navigation.md): Defer runtime work until the user navigates with the navigation function.
- [NextRequest](app/api-reference/functions/next-request.md): API Reference for NextRequest.
- [NextResponse](app/api-reference/functions/next-response.md): API Reference for NextResponse.
- [next/root-params](app/api-reference/functions/next-root-params.md): API Reference for the next/root-params module that provides access to root-level route parameters.
- [notFound](app/api-reference/functions/not-found.md): API Reference for the notFound function.
- [permanentRedirect](app/api-reference/functions/permanentRedirect.md): API Reference for the permanentRedirect function.
- [prefetch](app/api-reference/functions/prefetch.md): Defer runtime work until a per-link prefetch or navigation with the prefetch function.
- [redirect](app/api-reference/functions/redirect.md): API Reference for the redirect function.
- [refresh](app/api-reference/functions/refresh.md): API Reference for the refresh function.
- [revalidatePath](app/api-reference/functions/revalidatePath.md): API Reference for the revalidatePath function.
- [revalidateTag](app/api-reference/functions/revalidateTag.md): API Reference for the revalidateTag function.
- [unauthorized](app/api-reference/functions/unauthorized.md): API Reference for the unauthorized function.
- [unstable_cache](app/api-reference/functions/unstable_cache.md): API Reference for the unstable_cache function.
- [unstable_noStore](app/api-reference/functions/unstable_noStore.md): API Reference for the unstable_noStore function.
- [unstable_rethrow](app/api-reference/functions/unstable_rethrow.md): API Reference for the unstable_rethrow function.
- [updateTag](app/api-reference/functions/updateTag.md): API Reference for the updateTag function.
- [useLinkStatus](app/api-reference/functions/use-link-status.md): API Reference for the useLinkStatus hook.
- [useOffline](app/api-reference/functions/use-offline.md): API Reference for the useOffline hook.
- [useParams](app/api-reference/functions/use-params.md): API Reference for the useParams hook.
- [usePathname](app/api-reference/functions/use-pathname.md): API Reference for the usePathname hook.
- [useReportWebVitals](app/api-reference/functions/use-report-web-vitals.md): Measure Core Web Vitals (LCP, CLS, INP) plus FCP and TTFB, and report them to any analytics provider with the `useReportWebVitals` hook.
- [useRouter](app/api-reference/functions/use-router.md): API reference for the useRouter hook.
- [useSearchParams](app/api-reference/functions/use-search-params.md): API Reference for the useSearchParams hook.
- [useSelectedLayoutSegment](app/api-reference/functions/use-selected-layout-segment.md): API Reference for the useSelectedLayoutSegment hook.
- [useSelectedLayoutSegments](app/api-reference/functions/use-selected-layout-segments.md): API Reference for the useSelectedLayoutSegments hook.
- [useServerInsertedHTML](app/api-reference/functions/use-server-inserted-html.md): API Reference for the useServerInsertedHTML hook.
- [userAgent](app/api-reference/functions/userAgent.md): The userAgent helper extends the Web Request API with additional properties and methods to interact with the user agent object from the request.
- [adapterPath](app/api-reference/config/next-config-js/adapterPath.md): Configure a custom adapter for Next.js to hook into the build process.
- [agentFeedback](app/api-reference/config/next-config-js/agentFeedback.md): Enable a review flow for Next.js issue reports prepared by AI coding agents.
- [agentRules](app/api-reference/config/next-config-js/agentRules.md): Configure whether Next.js creates instructions for AI coding agents.
- [agentUpgrade](app/api-reference/config/next-config-js/agentUpgrade.md): Configure coding agent upgrades and reminders.
- [allowedDevOrigins](app/api-reference/config/next-config-js/allowedDevOrigins.md): Use `allowedDevOrigins` to configure additional origins that can request the dev server.
- [appDir](app/api-reference/config/next-config-js/appDir.md): Enable the App Router to use layouts, streaming, and more.
- [assetPrefix](app/api-reference/config/next-config-js/assetPrefix.md): Learn how to use the assetPrefix config option to configure your CDN.
- [authInterrupts](app/api-reference/config/next-config-js/authInterrupts.md): Learn how to enable the experimental `authInterrupts` configuration option to use `forbidden` and `unauthorized`.
- [basePath](app/api-reference/config/next-config-js/basePath.md): Use `basePath` to deploy a Next.js application under a sub-path of a domain.
- [cacheComponents](app/api-reference/config/next-config-js/cacheComponents.md): Learn how to enable the cacheComponents flag in Next.js.
- [cacheHandlers](app/api-reference/config/next-config-js/cacheHandlers.md): Configure custom cache handlers for use cache directives in Next.js.
- [cacheLife](app/api-reference/config/next-config-js/cacheLife.md): Learn how to set up cacheLife configurations in Next.js.
- [cacheMaxMemorySize](app/api-reference/config/next-config-js/cacheMaxMemorySize.md): Configure the size of the in-memory cache that Next.js keeps in each server instance.
- [compress](app/api-reference/config/next-config-js/compress.md): Next.js provides gzip compression to compress rendered content and static files, it only works with the server target. Learn more about it here.
- [crossOrigin](app/api-reference/config/next-config-js/crossOrigin.md): Use the `crossOrigin` option to add a crossOrigin attribute to the `script` tags generated by `next/script`.
- [cssChunking](app/api-reference/config/next-config-js/cssChunking.md): Use the `cssChunking` option to control how CSS files are chunked in your Next.js application.
- [deploymentId](app/api-reference/config/next-config-js/deploymentId.md): Configure a deployment identifier used for version skew protection and cache busting.
- [devIndicators](app/api-reference/config/next-config-js/devIndicators.md): Configure the position and visibility of the Next.js development indicator with devIndicators.
- [distDir](app/api-reference/config/next-config-js/distDir.md): Set a custom build directory to use instead of the default .next directory.
- [enablePrerenderSourceMaps](app/api-reference/config/next-config-js/enablePrerenderSourceMaps.md): Enable source maps for errors during prerendering in next build.
- [env](app/api-reference/config/next-config-js/env.md): Learn to add and access environment variables in your Next.js application at build time.
- [expireTime](app/api-reference/config/next-config-js/expireTime.md): Customize stale-while-revalidate expire time for ISR enabled pages.
- [exportPathMap](app/api-reference/config/next-config-js/exportPathMap.md): Customize the pages that will be exported as HTML files when using `next export`.
- [exposeTestingApiInProductionBuild](app/api-reference/config/next-config-js/exposeTestingApiInProductionBuild.md): Expose the Instant Navigation testing API in production builds for end-to-end tests.
- [generateBuildId](app/api-reference/config/next-config-js/generateBuildId.md): Configure the build id, which is used to identify the current build in which your application is being served.
- [generateEtags](app/api-reference/config/next-config-js/generateEtags.md): Next.js will generate etags for every page by default. Learn more about how to disable etag generation here.
- [headers](app/api-reference/config/next-config-js/headers.md): Add custom HTTP headers to your Next.js app.
- [htmlLimitedBots](app/api-reference/config/next-config-js/htmlLimitedBots.md): Specify a list of user agents that should receive blocking metadata.
- [httpAgentOptions](app/api-reference/config/next-config-js/httpAgentOptions.md): Next.js will automatically use HTTP Keep-Alive by default. Learn more about how to disable HTTP Keep-Alive here.
- [images](app/api-reference/config/next-config-js/images.md): Custom configuration for the next/image loader
- [Custom Next.js Cache Handler](app/api-reference/config/next-config-js/incrementalCacheHandlerPath.md): Configure the Next.js cache used for storing and revalidating data to use any external service like Redis, Memcached, or others.
- [next.config.js](app/api-reference/config/next-config-js/index.md): Learn how to configure your application with next.config.js.
- [inlineCss](app/api-reference/config/next-config-js/inlineCss.md): Enable inline CSS support.
- [instrumentationClientInject](app/api-reference/config/next-config-js/instrumentationClientInject.md): Inject additional client-side instrumentation modules before the user's `instrumentation-client.{js,ts}` file.
- [logging](app/api-reference/config/next-config-js/logging.md): Configure logging behavior in the terminal when running Next.js in development mode, including fetch logging, incoming requests, and forwarding browser console logs to the terminal.
- [mdxRs](app/api-reference/config/next-config-js/mdxRs.md): Use the new Rust compiler to compile MDX files in the App Router.
- [onDemandEntries](app/api-reference/config/next-config-js/onDemandEntries.md): Configure how Next.js will dispose and keep in memory pages created in development.
- [optimizePackageImports](app/api-reference/config/next-config-js/optimizePackageImports.md): API Reference for optimizePackageImports Next.js Config Option
- [output](app/api-reference/config/next-config-js/output.md): Next.js automatically traces which files are needed by each page to allow for easy deployment of your application. Learn how it works here.
- [outputHashSalt](app/api-reference/config/next-config-js/outputHashSalt.md): Learn how to incorporate a custom salt string into content-addressed output filenames.
- [pageExtensions](app/api-reference/config/next-config-js/pageExtensions.md): Extend the default page extensions used by Next.js when resolving pages in the Pages Router.
- [partialPrefetching](app/api-reference/config/next-config-js/partialPrefetching.md): Configure the default link prefetch behavior to fetch only the static parts of each route.
- [poweredByHeader](app/api-reference/config/next-config-js/poweredByHeader.md): Next.js will add the `x-powered-by` header by default. Learn to opt-out of it here.
- [prefetchInlining](app/api-reference/config/next-config-js/prefetchInlining.md): Override how the App Router bundles small prefetch responses together.
- [productionBrowserSourceMaps](app/api-reference/config/next-config-js/productionBrowserSourceMaps.md): Enables browser source map generation during the production build.
- [proxyClientMaxBodySize](app/api-reference/config/next-config-js/proxyClientMaxBodySize.md): Configure the maximum request body size when using proxy.
- [reactCompiler](app/api-reference/config/next-config-js/reactCompiler.md): Enable the React Compiler to automatically optimize component rendering.
- [reactMaxHeadersLength](app/api-reference/config/next-config-js/reactMaxHeadersLength.md): The maximum length of the headers that are emitted by React and added to the response.
- [reactStrictMode](app/api-reference/config/next-config-js/reactStrictMode.md): The complete Next.js runtime is now Strict Mode-compliant, learn how to opt-in
- [redirects](app/api-reference/config/next-config-js/redirects.md): Add redirects to your Next.js app.
- [rewrites](app/api-reference/config/next-config-js/rewrites.md): Add rewrites to your Next.js app.
- [sassOptions](app/api-reference/config/next-config-js/sassOptions.md): Configure Sass options.
- [serverActions](app/api-reference/config/next-config-js/serverActions.md): Configure Server Actions behavior in your Next.js application.
- [serverComponentsHmrCache](app/api-reference/config/next-config-js/serverComponentsHmrCache.md): Configure whether fetch responses in Server Components are cached across HMR refresh requests.
- [serverExternalPackages](app/api-reference/config/next-config-js/serverExternalPackages.md): Opt-out specific dependencies from the Server Components bundling and use native Node.js `require`.
- [skipProxyUrlNormalize](app/api-reference/config/next-config-js/skipProxyUrlNormalize.md): Let Proxy see the original request instead of Next.js's normalized version. Formerly skipMiddlewareUrlNormalize.
- [skipTrailingSlashRedirect](app/api-reference/config/next-config-js/skipTrailingSlashRedirect.md): Disable the automatic trailing slash redirects so you can handle trailing slashes yourself in Proxy.
- [staleTimes](app/api-reference/config/next-config-js/staleTimes.md): Learn how to override the invalidation time of the client cache.
- [staticGeneration*](app/api-reference/config/next-config-js/staticGeneration.md): Learn how to configure static generation in your Next.js application.
- [supportsImmutableAssets](app/api-reference/config/next-config-js/supportsImmutableAssets.md): Configure support for immutable static assets
- [taint](app/api-reference/config/next-config-js/taint.md): Enable tainting Objects and Values.
- [trailingSlash](app/api-reference/config/next-config-js/trailingSlash.md): Configure Next.js pages to resolve with or without a trailing slash.
- [transpilePackages](app/api-reference/config/next-config-js/transpilePackages.md): Transpile and bundle dependencies from monorepo workspace packages or `node_modules` libraries that ship TypeScript, JSX, or modern syntax.
- [turbopack](app/api-reference/config/next-config-js/turbopack.md): Configure Next.js with Turbopack-specific options
- [turbopackChunking](app/api-reference/config/next-config-js/turbopackChunking.md): Configure how Turbopack splits your client-side and server-side JavaScript into chunks in production.
- [Turbopack FileSystem Caching](app/api-reference/config/next-config-js/turbopackFileSystemCache.md): Learn how to enable and configure FileSystem Caching for Turbopack builds
- [turbopackGc](app/api-reference/config/next-config-js/turbopackGc.md): Configure Turbopack to remove unreachable work from memory and the persistent cache.
- [turbopack.ignoreIssue](app/api-reference/config/next-config-js/turbopackIgnoreIssue.md): Suppress specific Turbopack errors and warnings from the CLI output and error overlay.
- [turbopackLazyDynamicImports](app/api-reference/config/next-config-js/turbopackLazyDynamicImports.md): Compile client-side dynamic imports when they are first requested during development.
- [turbopackLazyDynamicImportsSSR](app/api-reference/config/next-config-js/turbopackLazyDynamicImportsSSR.md): Compile dynamic imports when server rendering first reaches them during development.
- [turbopackLocalPostcssConfig](app/api-reference/config/next-config-js/turbopackLocalPostcssConfig.md): Enable per-directory PostCSS config resolution in Turbopack so that the config closest to each CSS file takes precedence over the project root config.
- [Turbopack Memory Eviction](app/api-reference/config/next-config-js/turbopackMemoryEviction.md): Learn how to control Turbopack's memory eviction strategy for the persistent cache.
- [turbopackPluginRuntimeStrategy](app/api-reference/config/next-config-js/turbopackPluginRuntimeStrategy.md): Choose how Turbopack runs Node.js evaluation for webpack loaders, Babel, and PostCSS.
- [turbopackRustReactCompiler](app/api-reference/config/next-config-js/turbopackRustReactCompiler.md): Use the native Rust port of the React Compiler with Turbopack instead of the Babel transform.
- [typedRoutes](app/api-reference/config/next-config-js/typedRoutes.md): Enable support for statically typed links.
- [typescript](app/api-reference/config/next-config-js/typescript.md): Configure how Next.js handles TypeScript errors during production builds and specify a custom tsconfig file.
- [urlImports](app/api-reference/config/next-config-js/urlImports.md): Configure Next.js to allow importing modules from external URLs.
- [useLightningcss](app/api-reference/config/next-config-js/useLightningcss.md): Enable experimental support for Lightning CSS.
- [useOffline](app/api-reference/config/next-config-js/useOffline.md): Learn how to enable the experimental `useOffline` configuration option to detect connectivity and retry failed requests automatically.
- [useTypeScriptCli](app/api-reference/config/next-config-js/useTypeScriptCli.md): Run the project-local TypeScript CLI for type checking during production builds.
- [webVitalsAttribution](app/api-reference/config/next-config-js/webVitalsAttribution.md): Learn how to use the webVitalsAttribution option to pinpoint the source of Web Vitals issues.
- [Custom Webpack Config](app/api-reference/config/next-config-js/webpack.md): Learn how to customize the webpack config used by Next.js
- [TypeScript](app/api-reference/config/typescript.md): Next.js provides a TypeScript-first development experience for building your React application.
- [ESLint Plugin](app/api-reference/config/eslint.md): Learn how to use and configure the ESLint plugin to catch common issues and problems in a Next.js application.
- [Configuration](app/api-reference/config/index.md): Learn how to configure Next.js applications.
- [create-next-app](app/api-reference/cli/create-next-app.md): Create Next.js apps using one command with the create-next-app CLI.
- [CLI](app/api-reference/cli/index.md): API Reference for the Next.js Command Line Interface (CLI) tools.
- [next CLI](app/api-reference/cli/next.md): Learn how to run and build your application with the Next.js CLI.
- [Configuration](app/api-reference/adapters/configuration.md): Configure `adapterPath` or `NEXT_ADAPTER_PATH` to use a custom deployment adapter.
- [Creating an Adapter](app/api-reference/adapters/creating-an-adapter.md): Create an adapter module that implements the `NextAdapter` interface.
- [API Reference](app/api-reference/adapters/api-reference.md): Reference for `modifyConfig` and `onBuildComplete` in the `NextAdapter` interface.
- [Testing Adapters](app/api-reference/adapters/testing-adapters.md): Validate adapters with the Next.js compatibility test harness and custom lifecycle scripts.
- [Routing with @next/routing](app/api-reference/adapters/routing-with-next-routing.md): Use `@next/routing` to apply Next.js route matching behavior in adapters.
- [Implementing PPR in an Adapter](app/api-reference/adapters/implementing-ppr-in-an-adapter.md): Implement Partial Prerendering support in an adapter using fallback output and cache hooks.
- [Runtime Integration](app/api-reference/adapters/runtime-integration.md): Understand how build-time adapters and runtime cache interfaces work together.
- [Invoking Entrypoints](app/api-reference/adapters/invoking-entrypoints.md): Invoke JavaScript build handlers and experimental Go HTTP server entrypoints.
- [Output Types](app/api-reference/adapters/output-types.md): Reference for all build output types exposed to adapters.
- [Routing Information](app/api-reference/adapters/routing-information.md): Reference for routing phases and route fields exposed in `onBuildComplete`.
- [Use Cases](app/api-reference/adapters/use-cases.md): Common patterns and examples for deployment adapter implementations.
- [Supporting Immutable Static Assets](app/api-reference/adapters/immutable-static-assets.md): Support immutable static assets in an adapter
- [Adapters](app/api-reference/adapters/index.md): Build deployment adapters for Next.js platforms and infrastructure.
- [Edge Runtime](app/api-reference/edge.md): API Reference for the Edge Runtime.
- [Turbopack](app/api-reference/turbopack.md): Turbopack is an incremental bundler optimized for JavaScript and TypeScript, written in Rust, and built into Next.js.
- [API Reference](app/api-reference/index.md): Next.js API Reference for the App Router.
- [Next.js Glossary](app/glossary.md): A glossary of common terms used in Next.js.
- [App Router](app/index.md): The App Router is a file-system based router that uses React's latest features such as Server Components, Suspense, Server Functions, and more.

## Pages Router

- [Create a new Next.js application](pages/getting-started/installation.md): How to create a new Next.js application with `create-next-app`. Set up TypeScript, ESLint,and configure your `next.config.js` file.
- [Project Structure and Organization](pages/getting-started/project-structure.md): Learn about the folder and file conventions in a Next.js project, and how to organize your project.
- [Image Optimization](pages/getting-started/images.md): Optimize your images with the built-in `next/image` component.
- [How to use fonts](pages/getting-started/fonts.md): Learn how to use fonts in Next.js
- [How to use CSS in your application](pages/getting-started/css.md): Learn about the different ways to add CSS to your application, including CSS Modules, Global CSS, Tailwind CSS, and more.
- [How to deploy your Next.js application](pages/getting-started/deploying.md): Learn how to deploy your Next.js application.
- [Getting Started - Pages Router](pages/getting-started/index.md): Learn how to create full-stack web applications with Next.js with the Pages Router.
- [How to set up analytics](pages/guides/analytics.md): Measure and track page performance using Next.js
- [How to implement authentication in Next.js](pages/guides/authentication.md): Learn how to implement authentication in Next.js, covering best practices, securing routes, authorization techniques, and session management.
- [How to configure Babel in Next.js](pages/guides/babel.md): Extend the babel preset added by Next.js with your own configs.
- [How to configure Continuous Integration (CI) build caching](pages/guides/ci-build-caching.md): Learn how to configure CI to cache Next.js builds
- [How to set a Content Security Policy (CSP) for your Next.js application](pages/guides/content-security-policy.md): Learn how to set a Content Security Policy (CSP) for your Next.js application.
- [How to use CSS-in-JS libraries](pages/guides/css-in-js.md): Use CSS-in-JS libraries with Next.js
- [How to set up a custom server in Next.js](pages/guides/custom-server.md): Start a Next.js app programmatically using a custom server.
- [How to use a custom webpack version in Next.js](pages/guides/custom-webpack.md): Use your application's webpack installation with Next.js instead of the bundled version.
- [How to use debugging tools with Next.js](pages/guides/debugging.md): Learn how to debug your Next.js application with VS Code or Chrome DevTools.
- [How to preview content with Draft Mode in Next.js](pages/guides/draft-mode.md): Next.js has draft mode to toggle between static and dynamic pages. You can learn how it works with Pages Router.
- [How to use environment variables in Next.js](pages/guides/environment-variables.md): Learn to add and access environment variables in your Next.js application.
- [How to create forms with API Routes](pages/guides/forms.md): Learn how to handle form submissions and data mutations with Next.js.
- [How to implement Incremental Static Regeneration (ISR)](pages/guides/incremental-static-regeneration.md): Learn how to create or update static pages at runtime with Incremental Static Regeneration.
- [Guides](pages/guides/index.md): Learn how to implement common UI patterns and use cases using Next.js
- [How to set up instrumentation](pages/guides/instrumentation.md): Learn how to use instrumentation to run code at server startup in your Next.js app
- [How to implement internationalization in Next.js](pages/guides/internationalization.md): Next.js has built-in support for internationalized routing and language detection. Learn more here.
- [How to lazy load Client Components and libraries](pages/guides/lazy-loading.md): Lazy load imported libraries and React Components to improve your application's overall loading performance.
- [How to use markdown and MDX in Next.js](pages/guides/mdx.md): Learn how to configure MDX to write JSX in your markdown files.
- [How to migrate from Pages to the App Router](pages/guides/migrating/app-router-migration.md): Learn how to upgrade your existing Next.js application from the Pages Router to the App Router.
- [How to migrate from Create React App to Next.js](pages/guides/migrating/from-create-react-app.md): Learn how to migrate your existing React application from Create React App to Next.js.
- [How to migrate from Vite to Next.js](pages/guides/migrating/from-vite.md): Learn how to migrate your existing React application from Vite to Next.js.
- [Migrating](pages/guides/migrating/index.md): Learn how to migrate from popular frameworks to Next.js
- [How to build micro-frontends using multi-zones and Next.js](pages/guides/multi-zones.md): Learn how to build micro-frontends using Next.js Multi-Zones to deploy multiple Next.js apps under a single domain.
- [How to instrument your Next.js app with OpenTelemetry](pages/guides/open-telemetry.md): Learn how to instrument your Next.js app with OpenTelemetry.
- [How to optimize package bundling](pages/guides/package-bundling.md): Learn how to optimize your application's server and client bundles.
- [How to configure PostCSS in Next.js](pages/guides/post-css.md): Extend the PostCSS config and plugins added by Next.js with your own.
- [How to preview content with Preview Mode in Next.js](pages/guides/preview-mode.md): Next.js has the preview mode for statically generated pages. You can learn how it works here.
- [How to optimize your Next.js application for production](pages/guides/production-checklist.md): Recommendations to ensure the best performance and user experience before taking your Next.js application to production.
- [How to handle redirects in Next.js](pages/guides/redirecting.md): Learn the different ways to handle redirects in Next.js.
- [How to use Sass in Next.js](pages/guides/sass.md): Learn how to use Sass in your Next.js application.
- [How to load and optimize scripts](pages/guides/scripts.md): Optimize 3rd party scripts with the built-in Script component.
- [How to self-host your Next.js application](pages/guides/self-hosting.md): Learn how to self-host your Next.js application on a Node.js server, Docker image, or static HTML files (static exports).
- [How to create a static export of your Next.js application](pages/guides/static-exports.md): Next.js enables starting as a static site or Single-Page Application (SPA), then later optionally upgrading to use features that require a server.
- [Tailwind CSS](pages/guides/tailwind-v3-css.md): Style your Next.js Application using Tailwind CSS.
- [How to set up Cypress with Next.js](pages/guides/testing/cypress.md): Learn how to set up Next.js with Cypress for End-to-End (E2E) and Component Testing.
- [Testing](pages/guides/testing/index.md): Learn how to set up Next.js with three commonly used testing tools — Cypress, Playwright, Vitest, and Jest.
- [How to set up Jest with Next.js](pages/guides/testing/jest.md): Learn how to set up Next.js with Jest for Unit Testing.
- [How to set up Playwright with Next.js](pages/guides/testing/playwright.md): Learn how to set up Next.js with Playwright for End-to-End (E2E) and Integration testing.
- [How to set up Vitest with Next.js](pages/guides/testing/vitest.md): Learn how to set up Next.js with Vitest and React Testing Library - two popular unit testing libraries.
- [How to optimize third-party libraries](pages/guides/third-party-libraries.md): Optimize the performance of third-party libraries in your application with the `@next/third-parties` package.
- [Codemods](pages/guides/upgrading/codemods.md): Use codemods to upgrade your Next.js codebase when new features are released.
- [Upgrading](pages/guides/upgrading/index.md): Learn how to upgrade to the latest versions of Next.js.
- [How to upgrade to version 10](pages/guides/upgrading/version-10.md): Upgrade your Next.js Application from Version 9 to Version 10.
- [How to upgrade to version 11](pages/guides/upgrading/version-11.md): Upgrade your Next.js Application from Version 10 to Version 11.
- [How to upgrade to version 12](pages/guides/upgrading/version-12.md): Upgrade your Next.js Application from Version 11 to Version 12.
- [How to upgrade to version 13](pages/guides/upgrading/version-13.md): Upgrade your Next.js Application from Version 12 to 13.
- [How to upgrade to version 14](pages/guides/upgrading/version-14.md): Upgrade your Next.js Application from Version 13 to 14.
- [How to upgrade to version 15](pages/guides/upgrading/version-15.md): Upgrade your Next.js Application from Version 14 to 15.
- [How to upgrade to version 16](pages/guides/upgrading/version-16.md): Upgrade your Next.js Application from Version 15 to 16.
- [How to upgrade to version 9](pages/guides/upgrading/version-9.md): Upgrade your Next.js Application from Version 8 to Version 9.
- [Pages and Layouts](pages/building-your-application/routing/pages-and-layouts.md): Create your first page and shared layout with the Pages Router.
- [Dynamic Routes](pages/building-your-application/routing/dynamic-routes.md): Dynamic Routes are pages that allow you to add custom params to your URLs. Start creating Dynamic Routes and learn more here.
- [Linking and Navigating](pages/building-your-application/routing/linking-and-navigating.md): Learn how navigation works in Next.js, and how to use the Link Component and `useRouter` hook.
- [Custom App](pages/building-your-application/routing/custom-app.md): Control page initialization and add a layout that persists for all pages by overriding the default App component used by Next.js.
- [Custom Document](pages/building-your-application/routing/custom-document.md): Extend the default document markup added by Next.js.
- [API Routes](pages/building-your-application/routing/api-routes.md): Next.js supports API Routes, which allow you to build your API without leaving your Next.js app. Learn how it works here.
- [Custom Errors](pages/building-your-application/routing/custom-error.md): Override and extend the built-in Error page to handle custom errors.
- [Routing](pages/building-your-application/routing/index.md): Learn the fundamentals of routing for front-end applications with the Pages Router.
- [Server-side Rendering (SSR)](pages/building-your-application/rendering/server-side-rendering.md): Use Server-side Rendering to render pages on each request.
- [Static Site Generation (SSG)](pages/building-your-application/rendering/static-site-generation.md): Use Static Site Generation (SSG) to prerender pages at build time.
- [Automatic Static Optimization](pages/building-your-application/rendering/automatic-static-optimization.md): Next.js automatically optimizes your app to be static HTML whenever possible. Learn how it works here.
- [Client-side Rendering (CSR)](pages/building-your-application/rendering/client-side-rendering.md): Learn how to implement client-side rendering in the Pages Router.
- [Rendering](pages/building-your-application/rendering/index.md): Learn the fundamentals of rendering in React and Next.js.
- [getStaticProps](pages/building-your-application/data-fetching/get-static-props.md): Fetch data and generate static pages with `getStaticProps`. Learn more about this API for data fetching in Next.js.
- [getStaticPaths](pages/building-your-application/data-fetching/get-static-paths.md): Fetch data and generate static pages with `getStaticPaths`. Learn more about this API for data fetching in Next.js.
- [getServerSideProps](pages/building-your-application/data-fetching/get-server-side-props.md): Fetch data on each request with `getServerSideProps`.
- [Client-side Fetching](pages/building-your-application/data-fetching/client-side.md): Learn about client-side data fetching, and how to use SWR, a data fetching React Hook library that handles caching, revalidation, focus tracking, refetching on interval and more.
- [Data Fetching](pages/building-your-application/data-fetching/index.md): Next.js allows you to fetch data in multiple ways, with prerendering, server-side rendering or static-site generation, and incremental static regeneration. Learn how to manage your application data in Next.js.
- [Error Handling](pages/building-your-application/configuring/error-handling.md): Handle errors in your Next.js app.
- [Configuring](pages/building-your-application/configuring/index.md): Learn how to configure your Next.js application.
- [Building Your Application](pages/building-your-application/index.md): Learn how to use Next.js features to build your application.
- [Font Module](pages/api-reference/components/font.md): API Reference for the Font Module
- [Form](pages/api-reference/components/form.md): Learn how to use the `<Form>` component to handle form submissions and search params updates with client-side navigation.
- [Head](pages/api-reference/components/head.md): Add custom elements to the `head` of your page with the built-in Head component.
- [Image (Legacy)](pages/api-reference/components/image-legacy.md): Backwards compatible Image Optimization with the Legacy Image component.
- [Image](pages/api-reference/components/image.md): Optimize Images in your Next.js Application using the built-in `next/image` Component.
- [Components](pages/api-reference/components/index.md): API Reference for Next.js built-in components in the Pages Router.
- [Link](pages/api-reference/components/link.md): API reference for the `<Link>` component.
- [Script](pages/api-reference/components/script.md): Optimize third-party scripts in your Next.js application using the built-in `next/script` Component.
- [File-system conventions](pages/api-reference/file-conventions/index.md): API Reference for Next.js file-system conventions.
- [instrumentation.js](pages/api-reference/file-conventions/instrumentation.md): API reference for the instrumentation.js file.
- [Proxy](pages/api-reference/file-conventions/proxy.md): Learn how to use Proxy to run code before a request is completed.
- [public Folder](pages/api-reference/file-conventions/public-folder.md): Next.js allows you to serve static files, like images, in the public directory. You can learn how it works here.
- [src Directory](pages/api-reference/file-conventions/src-folder.md): Save pages under the `src` folder as an alternative to the root `pages` directory.
- [catchError](pages/api-reference/functions/catchError.md): API Reference for the catchError function.
- [getInitialProps](pages/api-reference/functions/get-initial-props.md): Fetch dynamic data on the server for your React component with getInitialProps.
- [getServerSideProps](pages/api-reference/functions/get-server-side-props.md): API reference for `getServerSideProps`. Learn how to fetch data on each request with Next.js.
- [getStaticPaths](pages/api-reference/functions/get-static-paths.md): API reference for `getStaticPaths`. Learn how to fetch data and generate static pages with `getStaticPaths`.
- [getStaticProps](pages/api-reference/functions/get-static-props.md): API reference for `getStaticProps`. Learn how to use `getStaticProps` to generate static pages with Next.js.
- [Functions](pages/api-reference/functions/index.md): API Reference for Functions and Hooks in Pages Router.
- [NextRequest](pages/api-reference/functions/next-request.md): API Reference for NextRequest.
- [NextResponse](pages/api-reference/functions/next-response.md): API Reference for NextResponse.
- [useParams](pages/api-reference/functions/use-params.md): API Reference for the useParams hook in the Pages Router.
- [useReportWebVitals](pages/api-reference/functions/use-report-web-vitals.md): Send Core Web Vitals to analytics with `useReportWebVitals`, and Next.js custom performance metrics with the `reportWebVitals` export from `pages/_app`.
- [useRouter](pages/api-reference/functions/use-router.md): Learn more about the API of the Next.js Router, and access the router instance in your page with the useRouter hook.
- [useSearchParams](pages/api-reference/functions/use-search-params.md): API Reference for the useSearchParams hook in the Pages Router.
- [userAgent](pages/api-reference/functions/userAgent.md): The userAgent helper extends the Web Request API with additional properties and methods to interact with the user agent object from the request.
- [adapterPath](pages/api-reference/config/next-config-js/adapterPath.md): Configure a custom adapter for Next.js to hook into the build process.
- [allowedDevOrigins](pages/api-reference/config/next-config-js/allowedDevOrigins.md): Use `allowedDevOrigins` to configure additional origins that can request the dev server.
- [assetPrefix](pages/api-reference/config/next-config-js/assetPrefix.md): Learn how to use the assetPrefix config option to configure your CDN.
- [basePath](pages/api-reference/config/next-config-js/basePath.md): Use `basePath` to deploy a Next.js application under a sub-path of a domain.
- [bundlePagesRouterDependencies](pages/api-reference/config/next-config-js/bundlePagesRouterDependencies.md): Enable automatic dependency bundling for Pages Router
- [compress](pages/api-reference/config/next-config-js/compress.md): Next.js provides gzip compression to compress rendered content and static files, it only works with the server target. Learn more about it here.
- [crossOrigin](pages/api-reference/config/next-config-js/crossOrigin.md): Use the `crossOrigin` option to add a crossOrigin tag on the `script` tags generated by `next/script` and `next/head`.
- [deploymentId](pages/api-reference/config/next-config-js/deploymentId.md): Configure a deployment identifier used for version skew protection and cache busting.
- [devIndicators](pages/api-reference/config/next-config-js/devIndicators.md): Optimized pages include an indicator to let you know if it's being statically optimized. You can opt-out of it here.
- [distDir](pages/api-reference/config/next-config-js/distDir.md): Set a custom build directory to use instead of the default .next directory.
- [enablePrerenderSourceMaps](pages/api-reference/config/next-config-js/enablePrerenderSourceMaps.md): Enable source maps for errors during prerendering in next build.
- [env](pages/api-reference/config/next-config-js/env.md): Learn to add and access environment variables in your Next.js application at build time.
- [exportPathMap](pages/api-reference/config/next-config-js/exportPathMap.md): Customize the pages that will be exported as HTML files when using `next export`.
- [generateBuildId](pages/api-reference/config/next-config-js/generateBuildId.md): Configure the build id, which is used to identify the current build in which your application is being served.
- [generateEtags](pages/api-reference/config/next-config-js/generateEtags.md): Next.js will generate etags for every page by default. Learn more about how to disable etag generation here.
- [headers](pages/api-reference/config/next-config-js/headers.md): Add custom HTTP headers to your Next.js app.
- [httpAgentOptions](pages/api-reference/config/next-config-js/httpAgentOptions.md): Next.js will automatically use HTTP Keep-Alive by default. Learn more about how to disable HTTP Keep-Alive here.
- [images](pages/api-reference/config/next-config-js/images.md): Custom configuration for the next/image loader
- [next.config.js Options](pages/api-reference/config/next-config-js/index.md): Learn about the options available in next.config.js for the Pages Router.
- [logging](pages/api-reference/config/next-config-js/logging.md): Configure logging behavior in the terminal when running Next.js in development mode.
- [onDemandEntries](pages/api-reference/config/next-config-js/onDemandEntries.md): Configure how Next.js will dispose and keep in memory pages created in development.
- [optimizePackageImports](pages/api-reference/config/next-config-js/optimizePackageImports.md): API Reference for optimizePackageImports Next.js Config Option
- [output](pages/api-reference/config/next-config-js/output.md): Next.js automatically traces which files are needed by each page to allow for easy deployment of your application. Learn how it works here.
- [pageExtensions](pages/api-reference/config/next-config-js/pageExtensions.md): Extend the default page extensions used by Next.js when resolving pages in the Pages Router.
- [poweredByHeader](pages/api-reference/config/next-config-js/poweredByHeader.md): Next.js will add the `x-powered-by` header by default. Learn to opt-out of it here.
- [productionBrowserSourceMaps](pages/api-reference/config/next-config-js/productionBrowserSourceMaps.md): Enables browser source map generation during the production build.
- [experimental.proxyClientMaxBodySize](pages/api-reference/config/next-config-js/proxyClientMaxBodySize.md): Configure the maximum request body size when using proxy.
- [reactStrictMode](pages/api-reference/config/next-config-js/reactStrictMode.md): The complete Next.js runtime is now Strict Mode-compliant, learn how to opt-in
- [redirects](pages/api-reference/config/next-config-js/redirects.md): Add redirects to your Next.js app.
- [rewrites](pages/api-reference/config/next-config-js/rewrites.md): Add rewrites to your Next.js app.
- [serverExternalPackages](pages/api-reference/config/next-config-js/serverExternalPackages.md): Opt-out specific dependencies from the dependency bundling enabled by `bundlePagesRouterDependencies`.
- [skipProxyUrlNormalize](pages/api-reference/config/next-config-js/skipProxyUrlNormalize.md): Let Proxy see the original request instead of Next.js's normalized version. Formerly skipMiddlewareUrlNormalize.
- [skipTrailingSlashRedirect](pages/api-reference/config/next-config-js/skipTrailingSlashRedirect.md): Disable the automatic trailing slash redirects so you can handle trailing slashes yourself in Proxy.
- [trailingSlash](pages/api-reference/config/next-config-js/trailingSlash.md): Configure Next.js pages to resolve with or without a trailing slash.
- [transpilePackages](pages/api-reference/config/next-config-js/transpilePackages.md): Automatically transpile and bundle dependencies from local packages (like monorepos) or from external dependencies (`node_modules`).
- [turbopack](pages/api-reference/config/next-config-js/turbopack.md): Configure Next.js with Turbopack-specific options
- [turbopackChunking](pages/api-reference/config/next-config-js/turbopackChunking.md): Configure how Turbopack splits your client-side JavaScript into chunks in production.
- [typescript](pages/api-reference/config/next-config-js/typescript.md): Next.js reports TypeScript errors by default. Learn to opt-out of this behavior here.
- [urlImports](pages/api-reference/config/next-config-js/urlImports.md): Configure Next.js to allow importing modules from external URLs.
- [useLightningcss](pages/api-reference/config/next-config-js/useLightningcss.md): Enable experimental support for Lightning CSS.
- [useTypeScriptCli](pages/api-reference/config/next-config-js/useTypeScriptCli.md): Run the project-local TypeScript CLI for type checking during production builds.
- [webVitalsAttribution](pages/api-reference/config/next-config-js/webVitalsAttribution.md): Learn how to use the webVitalsAttribution option to pinpoint the source of Web Vitals issues.
- [Custom Webpack Config](pages/api-reference/config/next-config-js/webpack.md): Learn how to customize the webpack config used by Next.js
- [TypeScript](pages/api-reference/config/typescript.md): Next.js provides a TypeScript-first development experience for building your React application.
- [ESLint](pages/api-reference/config/eslint.md): Next.js reports ESLint errors and warnings during builds by default. Learn how to opt-out of this behavior here.
- [Configuration](pages/api-reference/config/index.md): Learn how to configure your Next.js application.
- [create-next-app CLI](pages/api-reference/cli/create-next-app.md): Create Next.js apps using one command with the create-next-app CLI.
- [CLI](pages/api-reference/cli/index.md): API Reference for the Next.js Command Line Interface (CLI) tools.
- [next CLI](pages/api-reference/cli/next.md): Learn how to run and build your application with the Next.js CLI.
- [Configuration](pages/api-reference/adapters/configuration.md): Configure `adapterPath` or `NEXT_ADAPTER_PATH` to use a custom deployment adapter.
- [Creating an Adapter](pages/api-reference/adapters/creating-an-adapter.md): Create an adapter module that implements the `NextAdapter` interface.
- [API Reference](pages/api-reference/adapters/api-reference.md): Reference for `modifyConfig` and `onBuildComplete` in the `NextAdapter` interface.
- [Testing Adapters](pages/api-reference/adapters/testing-adapters.md): Validate adapters with the Next.js compatibility test harness and custom lifecycle scripts.
- [Routing with @next/routing](pages/api-reference/adapters/routing-with-next-routing.md): Use `@next/routing` to apply Next.js route matching behavior in adapters.
- [Runtime Integration](pages/api-reference/adapters/runtime-integration.md): Understand how build-time adapters and runtime cache interfaces work together.
- [Invoking Entrypoints](pages/api-reference/adapters/invoking-entrypoints.md): Invoke Node.js and Edge build entrypoints with adapter runtime context.
- [Output Types](pages/api-reference/adapters/output-types.md): Reference for all build output types exposed to adapters.
- [Routing Information](pages/api-reference/adapters/routing-information.md): Reference for routing phases and route fields exposed in `onBuildComplete`.
- [Use Cases](pages/api-reference/adapters/use-cases.md): Common patterns and examples for deployment adapter implementations.
- [Adapters](pages/api-reference/adapters/index.md): Build deployment adapters for Next.js platforms and infrastructure.
- [Edge Runtime](pages/api-reference/edge.md): API Reference for the Edge Runtime.
- [Turbopack](pages/api-reference/turbopack.md): Turbopack is an incremental bundler optimized for JavaScript and TypeScript, written in Rust, and built into Next.js.
- [API Reference](pages/api-reference/index.md): Next.js API Reference for the Pages Router.
- [Pages Router](pages/index.md): Before Next.js 13, the Pages Router was the main way to create routes in Next.js with an intuitive file-system router.

## Architecture and community

- [Accessibility](architecture/accessibility.md): The built-in accessibility features of Next.js.
- [Fast Refresh](architecture/fast-refresh.md): Fast Refresh is a hot module reloading experience that gives you instantaneous feedback on edits made to your React components.
- [Architecture](architecture/index.md): How Next.js Works
- [Next.js Compiler](architecture/nextjs-compiler.md): Next.js Compiler, written in Rust, which transforms and minifies your Next.js application.
- [Supported Browsers](architecture/supported-browsers.md): Browser support and which JavaScript features are supported by Next.js.
- [Docs Contribution Guide](community/contribution-guide.md): Learn how to contribute to Next.js Documentation
- [Rspack Integration](community/rspack.md): Use the `next-rspack` plugin to bundle your Next.js with Rspack.
- [Next.js Community](community/index.md): Get involved in the Next.js community.
- [Next.js Docs](index.md): Welcome to the Next.js Documentation.

## Errors and warnings

- [404.js Cannot Have getInitialProps](messages/404-get-initial-props.md): This document provides an understanding of the "404.js Cannot Have getInitialProps" error in Next.js and offers solutions to fix it.
- [Addressing "API Routes Response Size Limited to 4MB" Error in Next.js](messages/api-routes-response-size-limit.md): This document explains the "API Routes Response Size Limited to 4MB" error in Next.js and guides developers on how to modify response size limits.
- [Understanding "API Routes in Static Export" Warning in Next.js](messages/api-routes-static-export.md): This document explains the "API Routes in Static Export" warning in Next.js and offers steps to resolve it.
- [Addressing "App Container Deprecated" Error in Next.js](messages/app-container-deprecated.md): This document guides developers on how to resolve the "App Container Deprecated" error in Next.js by updating their custom App component.
- [Handling "Dynamic href is not Supported in the App Router" Error in Next.js](messages/app-dir-dynamic-href.md): This document describes the dynamic href is not supported in the App Router error in Next.js and provides a solution to fix it.
- [Resolving "app/ Static to Dynamic Error" in Next.js](messages/app-static-to-dynamic-error.md): This document explains the "app/ Static to Dynamic Error" in Next.js and provides potential solutions to resolve it.
- [Resolving "Babel and `next/font` Conflict" in Next.js](messages/babel-font-loader-conflict.md): This document explains the "Babel and `next/font` Conflict" in Next.js and provides a solution to resolve this issue.
- [Next.js encountered URL data in a Client Component outside of Suspense](messages/blocking-prerender-client-hook.md)
- [Next.js encountered the unstable value crypto.randomUUID() in a Client Component](messages/blocking-prerender-crypto-client.md)
- [Next.js encountered the unstable value crypto.randomUUID() while prerendering](messages/blocking-prerender-crypto.md)
- [Next.js encountered the unstable value Date.now() in a Client Component](messages/blocking-prerender-current-time-client.md)
- [Next.js encountered the unstable value Date.now() while prerendering](messages/blocking-prerender-current-time.md)
- [Next.js encountered uncached data during prerendering or a navigation](messages/blocking-prerender-dynamic.md)
- [Next.js encountered uncached data in generateMetadata()](messages/blocking-prerender-metadata-dynamic.md)
- [Next.js encountered runtime data in generateMetadata()](messages/blocking-prerender-metadata-runtime.md)
- [Next.js encountered the unstable value Math.random() in a Client Component](messages/blocking-prerender-random-client.md)
- [Next.js encountered the unstable value Math.random() while prerendering](messages/blocking-prerender-random.md)
- [Next.js encountered runtime data during prerendering or a navigation](messages/blocking-prerender-runtime.md)
- [Next.js encountered uncached data in generateViewport()](messages/blocking-prerender-viewport-dynamic.md)
- [Next.js encountered runtime data in generateViewport()](messages/blocking-prerender-viewport-runtime.md)
- [Uncached data was accessed outside of `<Suspense>`](messages/blocking-route.md)
- [Handling "Build Directory Not Writeable" Error in Next.js](messages/build-dir-not-writeable.md): This document explains the "Build Directory Not Writeable" error in Next.js and provides a solution to resolve this issue.
- [Resolving "Built-in CSS Support Disabled" Error in Next.js](messages/built-in-css-disabled.md): This document provides a comprehensive explanation of the "Built-in CSS Support Disabled" error in Next.js and suggests ways to fix it.
- [Resolving "Built-in next/font" Error in Next.js](messages/built-in-next-font.md): This document offers a detailed guide on fixing the "Built-in `next/font`" error in Next.js, which typically occurs when you're still using the `@next/font` package in Next.js 13.2 and later.
- [Caches Bypassed in Development Mode](messages/cache-bypass-in-dev.md)
- [Cannot call `cacheLife()` outside `use cache`](messages/cache-life-outside-use-cache.md)
- [Cannot call `cacheTag()` outside `use cache`](messages/cache-tag-outside-use-cache.md)
- [Cannot output to /public](messages/can-not-output-to-public.md)
- [Cannot output to /static](messages/can-not-output-to-static.md)
- [Can't Override Next Props](messages/cant-override-next-props.md)
- [Circular structure in `getInitialProps` result](messages/circular-structure.md)
- [React Class component rendered in a Server Component](messages/class-component-in-server-component.md)
- [Client-side Exception Occurred](messages/client-side-exception-occurred.md)
- [Invalid webpack resolve alias](messages/config-resolve-alias.md)
- [Conflicting Public File and Page File](messages/conflicting-public-file-page.md)
- [Conflicting SSG Paths](messages/conflicting-ssg-paths.md)
- [createContext in a Server Component](messages/context-in-server-component.md)
- [Global CSS Must Be in Your Custom `<App>`](messages/css-global.md)
- [CSS Modules Imported by a Dependency](messages/css-modules-npm.md)
- [CSS Imported by a Dependency](messages/css-npm.md)
- [Images cannot be imported into your custom document.](messages/custom-document-image-import.md)
- [Custom `_error` without /404](messages/custom-error-no-custom-404.md)
- [Deleting Query Parameters In Proxies](messages/deleting-query-params-in-proxy.md)
- [Entire page deopted into client-side rendering](messages/deopted-into-client-rendering.md)
- [`deploymentId` contains invalid characters](messages/deploymentid-invalid-characters.md)
- [`deploymentId` must be a string](messages/deploymentid-not-a-string.md)
- [config.analytics is deprecated](messages/deprecated-analyticsid.md)
- [Deprecated target config](messages/deprecated-target-config.md)
- [`Head` or `NextScript` attribute `crossOrigin` is deprecated](messages/doc-crossorigin-deprecated.md)
- [Duplicate Sass Dependencies](messages/duplicate-sass.md)
- [DynamicServerError - Dynamic Server Usage](messages/dynamic-server-error.md)
- [Dynamic code evaluation is not available in Proxy](messages/edge-dynamic-code-evaluation.md)
- [Edge Runtime Deprecated](messages/edge-runtime-deprecated.md)
- [Detected `next.config.js`, no exported configuration found](messages/empty-configuration.md)
- [Empty generateStaticParams with Cache Components](messages/empty-generate-static-params.md)
- [Empty Object Returned From `getInitialProps`](messages/empty-object-getInitialProps.md)
- [The key `<your key>` under "env" in `next.config.js` is not allowed.](messages/env-key-not-allowed.md)
- [Env Loading Disabled](messages/env-loading-disabled.md)
- [Experimental `appDir: true`](messages/experimental-app-dir-config.md)
- [`next/jest` Experimental](messages/experimental-jest-transformer.md)
- [Re-exporting all exports from a page is disallowed](messages/export-all-in-page.md)
- [Export with Image Optimization API](messages/export-image-api.md)
- [Export Custom Routes](messages/export-no-custom-routes.md)
- [Export Internationalization (i18n)](messages/export-no-i18n.md)
- [The provided export path doesn't match the page.](messages/export-path-mismatch.md)
- [SWC Failed to Load](messages/failed-loading-swc.md)
- [Failed to fetch `devPagesManifest`](messages/failed-to-fetch-devpagesmanifest.md)
- [Failed to find Server Action](messages/failed-to-find-server-action.md): Learn why Next.js could not resolve a Server Action or received a Server Action ID in an unexpected format.
- [Fast Refresh had to perform full reload](messages/fast-refresh-reload.md)
- [`future.webpack5` has been moved to `webpack5`](messages/future-webpack5-moved-to-webpack5.md)
- [`generateStaticParams` Error](messages/generate-static-params.md)
- [`generateBuildId` did not return a string](messages/generatebuildid-not-a-string.md)
- [`getInitialProps` was defined as an instance method](messages/get-initial-props-as-an-instance-method.md)
- [`getInitialProps` Export Warning](messages/get-initial-props-export.md)
- [Google Font Display](messages/google-font-display.md)
- [Google Font Preconnect](messages/google-font-preconnect.md)
- [Missing specified subset for a `next/font/google` font](messages/google-fonts-missing-subsets.md)
- [Redirect During getStaticProps Prerendering](messages/gsp-redirect-during-prerender.md)
- [`getStaticProps` / `getServerSideProps` can not be attached to the page component](messages/gssp-component-member.md)
- [`getServerSideProps` Export Error](messages/gssp-export.md)
- [Mixed `notFound` and `redirect`](messages/gssp-mixed-not-found-redirect.md)
- [Must not access ServerResponse after `getServerSideProps` resolves](messages/gssp-no-mutating-res.md)
- [Failed to load `BUILD_ID` from Server](messages/head-build-id.md)
- [`href` Interpolation Failed](messages/href-interpolation-failed.md)
- [`ignored-compiler-options`](messages/ignored-compiler-options.md)
- [ESM packages need to be imported](messages/import-esm-externals.md)
- [Invalid `next` Import](messages/import-next.md)
- [Improper webpack `devtool` used in development mode](messages/improper-devtool.md)
- [Incompatible `href` and `as` values](messages/incompatible-href-as.md)
- [Inline script id](messages/inline-script-id.md)
- [Install `sass` to Use Built-In Sass Support](messages/install-sass.md)
- [Install `sharp` to Use Built-In Image Optimization](messages/install-sharp.md)
- [Next.js encountered dynamic data during prefetching](messages/instant-link-prefetch-partial.md)
- [Next.js encountered `prefetch()` or `navigation()` in `generateMetadata()`](messages/instant-navigation-stage-metadata.md)
- [Next.js encountered `prefetch()` or `navigation()` in `generateViewport()`](messages/instant-navigation-stage-viewport.md)
- [Next.js encountered `prefetch()` or `navigation()` outside of Suspense](messages/instant-navigation-stage.md)
- [Instant Navigation validation errors](messages/instant-navigation-validation.md)
- [Next.js encountered URL data outside of Suspense](messages/instant-shell-url-data.md)
- [Next.js could not validate that a segment in your UI has instant navigation](messages/instant-unrendered-segment.md)
- [Invalid API Route Status/Body Response](messages/invalid-api-status-body.md)
- [Invalid `assetPrefix`](messages/invalid-assetprefix.md)
- [Invalid distDir](messages/invalid-dist-dir.md)
- [Invalid options type in a `next/dynamic` call](messages/invalid-dynamic-options-type.md)
- [Invalid Usage of `suspense` Option of `next/dynamic`](messages/invalid-dynamic-suspense.md)
- [Invalid External Rewrite](messages/invalid-external-rewrite.md)
- [Invalid `getServerSideProps` Return Value](messages/invalid-getserversideprops-value.md)
- [Invalid `getStaticPaths` Return Value](messages/invalid-getstaticpaths-value.md)
- [Invalid `getStaticProps` Return Value](messages/invalid-getstaticprops-value.md)
- [Invalid `href` passed to router](messages/invalid-href-passed.md)
- [Invalid i18n config](messages/invalid-i18n-config.md)
- [Invalid `images` config](messages/invalid-images-config.md)
- [Invalid Instant Configuration](messages/invalid-instant-configuration.md)
- [Invalid Multi-match](messages/invalid-multi-match.md)
- [Invalid `<Link>` with `<a>` child](messages/invalid-new-link-with-extra-anchor.md)
- [Invalid `next.config.js`](messages/invalid-next-config.md)
- [Invalid Page / API Route Config](messages/invalid-page-config.md)
- [Invalid Project Directory Casing](messages/invalid-project-dir-casing.md)
- [Invalid React Version](messages/invalid-react-version.md)
- [Invalid Redirect `getStaticProps` / `getServerSideProps`](messages/invalid-redirect-gssp.md)
- [Invalid relative `href` and external `as` values](messages/invalid-relative-url-external-as.md)
- [Invalid `webpack` resolve alias](messages/invalid-resolve-alias.md)
- [Invalid Custom Route `source`](messages/invalid-route-source.md)
- [Invalid Script](messages/invalid-script.md)
- [Invalid Layout or Page Export](messages/invalid-segment-export.md)
- [It looks like the next instance is being instantiated incorrectly.](messages/invalid-server-options.md)
- [Invalid `styled-jsx` children](messages/invalid-styled-jsx-children.md)
- [Invalid "use server" Value](messages/invalid-use-server-value.md)
- [Invalid webpack 5 version](messages/invalid-webpack-5-version.md)
- [Large Page Data](messages/large-page-data.md)
- [Multiple children were passed to `<Link>`](messages/link-multiple-children.md)
- [No children were passed to `<Link>`](messages/link-no-children.md)
- [Link `passHref`](messages/link-passhref.md)
- [Max Custom Routes Reached](messages/max-custom-routes-reached.md)
- [Renaming Middleware to Proxy](messages/middleware-to-proxy.md)
- [Middleware Upgrade Guide](messages/middleware-upgrade-guide.md)
- [Minification Disabled in Production](messages/minification-disabled.md)
- [Missing data-scroll-behavior Attribute for Smooth Scroll](messages/missing-data-scroll-behavior.md)
- [Missing Document Components](messages/missing-document-component.md)
- [Missing Env Value](messages/missing-env-value.md)
- [Missing Root Layout tags](messages/missing-root-layout-tags.md)
- [Missing Suspense boundary with useSearchParams](messages/missing-suspense-with-csr-bailout.md)
- [Module Not Found](messages/module-not-found.md)
- [Multiple Tabs](messages/multi-tabs.md)
- [Nested Proxy](messages/nested-proxy.md)
- [Nested Reserved Page](messages/nested-reserved-page.md)
- [Nested `<style jsx>` tags](messages/nested-styled-jsx-tags.md)
- [Nested `"use cache"` with short cache lifetime requires explicit `cacheLife` on outer cache](messages/nested-use-cache-no-explicit-cachelife.md)
- [`next.config.js` Loading Error](messages/next-config-error.md)
- [Request-time API was called outside request](messages/next-dynamic-api-wrong-context.md)
- [`next/dynamic` has deprecated loading multiple modules at once](messages/next-dynamic-modules.md)
- [Could not find a production build](messages/next-export-no-build-id.md)
- [Using `next export` with `target` not set to `server`](messages/next-export-serverless.md)
- [`next-head-count` is missing](messages/next-head-count-missing.md)
- [Missing `width` in the URL Returned by the Loader Prop on `next/image`](messages/next-image-missing-loader-width.md)
- [Missing `loader` Prop on `next/image`](messages/next-image-missing-loader.md)
- [`next/image` Un-configured Host](messages/next-image-unconfigured-host.md)
- [`next/image` Un-configured localPatterns](messages/next-image-unconfigured-localpatterns.md)
- [`next/image` Un-configured qualities](messages/next-image-unconfigured-qualities.md)
- [`next/image` changed in version 13](messages/next-image-upgrade-to-13.md)
- [Client navigation hook requires a Suspense boundary](messages/next-prerender-client-hook.md)
- [Cannot access `crypto.getRandomValue()`, `crypto.randomUUID()`, or another web or node crypto API that generates random values synchronously from a Client Component without a fallback UI defined](messages/next-prerender-crypto-client.md)
- [Cannot access `crypto.getRandomValue()`, `crypto.randomUUID()`, or another web or node crypto API that generates random values synchronously before other uncached data or Request data in a Server Component](messages/next-prerender-crypto.md)
- [Cannot access current time from a Client Component without a fallback UI defined](messages/next-prerender-current-time-client.md)
- [Cannot access `Date.now()`, `Date()`, or `new Date()` before other uncached data or Request data in a Server Component](messages/next-prerender-current-time.md)
- [Cannot access Runtime data or uncached data in `generateMetadata()` or file-based Metadata in an otherwise entirely static route](messages/next-prerender-dynamic-metadata.md)
- [Cannot access Runtime data or uncached data in `generateViewport()`](messages/next-prerender-dynamic-viewport.md)
- [Cannot access `Math.random()` from a Client Component without a fallback UI defined](messages/next-prerender-random-client.md)
- [Cannot access `Math.random()` before other uncached data or Request data in a Server Component](messages/next-prerender-random.md)
- [Cannot access `crypto.getRandomValue()`, `crypto.randomUUID()`, or another web or node crypto API that generates random values synchronously before other uncached data or `connection()` in a Server Component](messages/next-prerender-runtime-crypto.md)
- [Cannot access `Date.now()`, `Date()`, or `new Date()` before other uncached data or `connection()` in a Server Component](messages/next-prerender-runtime-current-time.md)
- [Cannot access `Math.random()` before other uncached data or `connection()` in a Server Component](messages/next-prerender-runtime-random.md)
- [Cannot access Request information synchronously with `cookies()`, `headers()`, or `draftMode()`](messages/next-prerender-sync-headers.md)
- [Cannot access Request information synchronously with Page or Layout or Route `params` or Page `searchParams`](messages/next-prerender-sync-params.md)
- [Cannot access Request information synchronously in route.js without awaiting connection first](messages/next-prerender-sync-request.md)
- [Cannot access request data in `use cache`](messages/next-request-in-use-cache.md)
- [`NextResponse.next()` used in a Route Handler in the App Router](messages/next-response-next-in-app-route-handler.md)
- [`NextRouter` was not mounted](messages/next-router-not-mounted.md)
- [Using Google Analytics with Next.js (through `@next/third-parties/google`)](messages/next-script-for-ga.md)
- [Using `next start` with `target` not set to `server`](messages/next-start-serverless.md)
- [No assign module variable](messages/no-assign-module-variable.md)
- [No async Client Component](messages/no-async-client-component.md)
- [No Before Interactive Script Outside Document](messages/no-before-interactive-script-outside-document.md)
- [No Cache Detected](messages/no-cache.md)
- [No CSS Tags](messages/no-css-tags.md)
- [No Document Import in Page](messages/no-document-import-in-page.md)
- [`<title>` should not be used in _document.js `<Head>`](messages/no-document-title.md)
- [Viewport `meta` tags should not be used in `_document.js` `<Head>`](messages/no-document-viewport-meta.md)
- [No Duplicate Head](messages/no-duplicate-head.md)
- [No Head Element](messages/no-head-element.md)
- [No Head Import in Document](messages/no-head-import-in-document.md)
- [No HTML link for pages](messages/no-html-link-for-pages.md)
- [No img element](messages/no-img-element.md)
- [No location.assign or location.href navigation to relative URLs](messages/no-location-assign-relative-destination.md)
- [`Router.onAppUpdated` has been removed](messages/no-on-app-updated-hook.md)
- [No Page Custom Font](messages/no-page-custom-font.md)
- [No Router Instance](messages/no-router-instance.md)
- [No Script Component in Head](messages/no-script-component-in-head.md)
- [No Script in Document](messages/no-script-in-document.md)
- [No Script Tags In Head Component](messages/no-script-tags-in-head-component.md)
- [No Server Import In Page](messages/no-server-import-in-page.md)
- [No `styled-jsx` in `_document`](messages/no-styled-jsx-in-document.md)
- [No Stylesheets In Head Component](messages/no-stylesheets-in-head-component.md)
- [No Sync Scripts](messages/no-sync-scripts.md)
- [No Title in Document Head](messages/no-title-in-document-head.md)
- [No Typos](messages/no-typos.md)
- [No Unwanted Polyfill.io](messages/no-unwanted-polyfillio.md)
- [Using Node.js Modules in Edge Runtime](messages/node-module-in-edge-runtime.md)
- [`getStaticPaths` Used on Non-Dynamic Page](messages/non-dynamic-getstaticpaths-usage.md)
- [Non-Standard `NODE_ENV`](messages/non-standard-node-env.md)
- [nonce contained invalid characters](messages/nonce-contained-invalid-characters.md)
- [Opening a new Issue](messages/opening-an-issue.md)
- [Opt-out of Automatic Static Optimization](messages/opt-out-auto-static-optimization.md)
- [Opt-out of Automatic Static Optimization](messages/opt-out-automatic-prerendering.md)
- [Collecting page data timed out after multiple attempts](messages/page-data-collection-timeout.md)
- [Page Without Valid React Component](messages/page-without-valid-component.md)
- [`prefetch={true}` is deprecated (Pages Router)](messages/pages-router-prefetch-true-deprecated.md)
- [Parallel Build Without Build Worker](messages/parallel-build-without-worker.md)
- [`placeholder=blur` without `blurDataURL`](messages/placeholder-blur-data-url.md)
- [`popstate` called with empty state](messages/popstate-state-empty.md)
- [PostCSS Configuration Is a Function](messages/postcss-function.md)
- [Ignored PostCSS Plugin](messages/postcss-ignored-plugin.md)
- [Invalid PostCSS Configuration](messages/postcss-shape.md)
- [Static Bail Out Caught](messages/ppr-caught-error.md)
- [Partial Prerendering Preview in Next.js Canary](messages/ppr-preview.md)
- [preferredRegion Deprecated](messages/preferred-region-deprecated.md)
- [Prerender Error with Next.js](messages/prerender-error.md)
- [Could not find a production build](messages/production-start-no-build-id.md)
- [Promise In Next Config](messages/promise-in-next-config.md)
- [Dynamic WASM compilation is not available in Proxies](messages/proxy-dynamic-wasm-compilation.md)
- [Deprecated Proxy API Signature](messages/proxy-new-signature.md)
- [Removed parsed User Agent from Proxy API](messages/proxy-parse-user-agent.md)
- [Proxy Relative URLs](messages/proxy-relative-urls.md)
- [Removed page from Proxy API](messages/proxy-request-page.md)
- [Removed req.ua from Proxy API](messages/proxy-user-agent.md)
- [Public `_next` folder Conflict](messages/public-next-folder-conflict.md)
- [React client hook in Server Component](messages/react-client-hook-in-server-component.md)
- [Text content does not match server-rendered HTML](messages/react-hydration-error.md)
- [React Version Support](messages/react-version.md): Learn which React versions are supported by Next.js and how to upgrade.
- [Rendering Without Starting Slash](messages/render-no-starting-slash.md)
- [Reserved Page Prop](messages/reserved-page-prop.md)
- [Reserved Port](messages/reserved-port.md)
- [Cannot revalidate during render, inside a cached function, or in `generateStaticParams`](messages/revalidate-in-use-cache.md)
- [revalidateTag Single Argument Deprecated](messages/revalidate-tag-single-arg.md)
- [Rewriting to Auto Export or Fallback Dynamic Route](messages/rewrite-auto-export-fallback.md)
- [Custom Routes must return an array](messages/routes-must-be-array.md)
- [Sharp Missing In Production](messages/sharp-missing-in-production.md)
- [Sharp Version Does Not Support AVIF](messages/sharp-version-avif.md)
- [Missing Required default.js for Parallel Route](messages/slot-missing-default.md)
- [SSG `fallback: true` Export Error](messages/ssg-fallback-true-export.md)
- [Static directory is deprecated](messages/static-dir-deprecated.md)
- [Next.js encountered uncached data in `generateMetadata()` on a route that must be fully static](messages/static-metadata-dynamic.md)
- [Next.js encountered runtime data in `generateMetadata()` on a route that must be fully static](messages/static-metadata-runtime.md)
- [Static page generation timed out after multiple attempts](messages/static-page-generation-timeout.md)
- [Next.js encountered uncached data on a route that must be fully static](messages/static-route-dynamic.md)
- [Next.js encountered runtime data on a route that must be fully static](messages/static-route-runtime.md)
- [Next.js encountered uncached data in `generateViewport()` on a route that must be fully static](messages/static-viewport-dynamic.md)
- [Next.js encountered runtime data in `generateViewport()` on a route that must be fully static](messages/static-viewport-runtime.md)
- [SWC disabled](messages/swc-disabled.md)
- [SWC minify enabled](messages/swc-minify-enabled.md)
- [Dynamic APIs are Asynchronous](messages/sync-dynamic-apis.md): Learn more about why accessing certain APIs synchronously now warns.
- [Threw `undefined` / `null`](messages/threw-undefined.md)
- [Missing webpack config](messages/undefined-webpack-config.md)
- [An expected segment was not rendered during instant UI validation](messages/unrendered-instant-segment.md)
- [`url` is deprecated](messages/url-deprecated.md)
- [Invalid `use cache: private` composition](messages/use-cache-private-composition.md)
- [A newer version is available](messages/version-staleness.md)
- [Webpack Build Worker automatic opt-out](messages/webpack-build-worker-opt-out.md)
- [Webpack 5 Adoption](messages/webpack5.md)
