https://nextjs.org/docs/app/api-reference/config/next-config-js
Configuration: next.config.js | Next.js
May 28, 2026 - Learn how to configure your application with next.config.js.
next configconfigurationjs
https://nextjs.org/docs/app/api-reference/config/next-config-js/pageExtensions
next.config.js: pageExtensions | Next.js
May 7, 2026 - Extend the default page extensions used by Next.js when resolving pages in the Pages Router.
next config js
https://nextjs.org/docs/pages/api-reference/config/next-config-js/headers
next.config.js Options: headers | Next.js
May 13, 2026 - Add custom HTTP headers to your Next.js app.
next config jsoptionsheaders
https://nextjs.org/docs/app/api-reference/config/next-config-js/webpack
next.config.js: webpack | Next.js
Jun 1, 2026 - Learn how to customize the webpack config used by Next.js
next config jswebpack
https://nextjs.org/docs/pages/api-reference/config/next-config-js/poweredByHeader
next.config.js Options: poweredByHeader | Next.js
May 28, 2026 - Next.js will add the `x-powered-by` header by default. Learn to opt-out of it here.
next config jsoptions
https://nextjs.org/docs/pages/api-reference/config/next-config-js/env
next.config.js Options: env | Next.js
May 19, 2026 - Learn to add and access environment variables in your Next.js application at build time.
next config jsoptionsenv
https://nextjs.org/docs/app/api-reference/config/next-config-js/turbopackIgnoreIssue
next.config.js: turbopack.ignoreIssue | Next.js
May 28, 2026 - Suppress specific Turbopack errors and warnings from the CLI output and error overlay.
next config js
https://nextjs.org/docs/pages/api-reference/config/next-config-js/logging
next.config.js Options: logging | Next.js
May 19, 2026 - Configure logging behavior in the terminal when running Next.js in development mode.
next config jsoptionslogging
https://nextjs.org/docs/pages/api-reference/config/next-config-js
Configuration: next.config.js Options | Next.js
May 19, 2026 - Learn about the options available in next.config.js for the Pages Router.
next config jsconfigurationoptions
https://nextjs.org/docs/app/api-reference/config/next-config-js/devIndicators
next.config.js: devIndicators | Next.js
May 28, 2026 - Configuration options for the on-screen indicator that gives context about the current route you're viewing during development.
next config js
https://nextjs.org/docs/app/api-reference/config/next-config-js/appDir
next.config.js: appDir | Next.js
May 13, 2026 - Enable the App Router to use layouts, streaming, and more.
next config js
https://nextjs.org/docs/app/api-reference/config/next-config-js/basePath
next.config.js: basePath | Next.js
Jun 1, 2026 - Use `basePath` to deploy a Next.js application under a sub-path of a domain.
next config js
https://nextjs.org/docs/app/api-reference/config/next-config-js/output
next.config.js: output | Next.js
May 19, 2026 - Next.js automatically traces which files are needed by each page to allow for easy deployment of your application. Learn how it works here.
next config jsoutput
https://nextjs.org/docs/pages/api-reference/config/next-config-js/useLightningcss
next.config.js Options: useLightningcss | Next.js
May 19, 2026 - Enable experimental support for Lightning CSS.
next config jsoptions
https://nextjs.org/docs/app/api-reference/config/next-config-js/expireTime
next.config.js: expireTime | Next.js
May 13, 2026 - Customize stale-while-revalidate expire time for ISR enabled pages.
next config js
https://nextjs.org/docs/app/api-reference/config/next-config-js/authInterrupts
next.config.js: authInterrupts | Next.js
May 13, 2026 - Learn how to enable the experimental `authInterrupts` configuration option to use `forbidden` and `unauthorized`.
next config js
https://nextjs.org/docs/pages/api-reference/config/next-config-js/devIndicators
next.config.js Options: devIndicators | Next.js
May 19, 2026 - Optimized pages include an indicator to let you know if it's being statically optimized. You can opt-out of it here.
next config jsoptions
https://nextjs.org/docs/app/api-reference/config/next-config-js/inlineCss
next.config.js: inlineCss | Next.js
May 7, 2026 - Enable inline CSS support.
next config js
https://nextjs.org/docs/app/api-reference/config/next-config-js/rewrites
next.config.js: rewrites | Next.js
May 7, 2026 - Add rewrites to your Next.js app.
next config jsrewrites
https://nextjs.org/docs/app/api-reference/config/next-config-js/exportPathMap
next.config.js: exportPathMap | Next.js
May 28, 2026 - Customize the pages that will be exported as HTML files when using `next export`.
next config js
https://nextjs.org/docs/app/api-reference/config/next-config-js/mdxRs
next.config.js: mdxRs | Next.js
May 28, 2026 - Use the new Rust compiler to compile MDX files in the App Router.
next config js
https://nextjs.org/docs/app/api-reference/config/next-config-js/generateEtags
next.config.js: generateEtags | Next.js
May 13, 2026 - Next.js will generate etags for every page by default. Learn more about how to disable etag generation here.
next config js
https://nextjs.org/docs/pages/api-reference/config/next-config-js/rewrites
next.config.js Options: rewrites | Next.js
May 7, 2026 - Add rewrites to your Next.js app.
next config jsoptionsrewrites
https://nextjs.org/docs/app/api-reference/config/next-config-js/sassOptions
next.config.js: sassOptions | Next.js
May 31, 2026 - Configure Sass options.
next config js
https://nextjs.org/docs/pages/api-reference/config/next-config-js/reactStrictMode
next.config.js Options: reactStrictMode | Next.js
May 13, 2026 - The complete Next.js runtime is now Strict Mode-compliant, learn how to opt-in
next config jsoptions
https://nextjs.org/docs/pages/api-reference/config/next-config-js/adapterPath
next.config.js Options: adapterPath | Next.js
Jun 1, 2026 - Configure a custom adapter for Next.js to hook into the build process.
next config jsoptions
https://nextjs.org/docs/app/api-reference/config/next-config-js/staleTimes
next.config.js: staleTimes | Next.js
Jun 1, 2026 - Learn how to override the invalidation time of the client cache.
next config js
https://nextjs.org/docs/app/api-reference/config/next-config-js/redirects
next.config.js: redirects | Next.js
May 7, 2026 - Add redirects to your Next.js app.
next config jsredirects
https://nextjs.org/docs/app/api-reference/config/next-config-js/productionBrowserSourceMaps
next.config.js: productionBrowserSourceMaps | Next.js
Jun 1, 2026 - Enables browser source map generation during the production build.
next config js
https://nextjs.org/docs/app/api-reference/config/next-config-js/poweredByHeader
next.config.js: poweredByHeader | Next.js
May 13, 2026 - Next.js will add the `x-powered-by` header by default. Learn to opt-out of it here.
next config js
https://nextjs.org/docs/app/api-reference/config/next-config-js/cacheHandlers
next.config.js: cacheHandlers | Next.js
May 28, 2026 - Configure custom cache handlers for use cache directives in Next.js.
next config js
https://nextjs.org/docs/pages/api-reference/config/next-config-js/generateEtags
next.config.js Options: generateEtags | Next.js
May 19, 2026 - Next.js will generate etags for every page by default. Learn more about how to disable etag generation here.
next config jsoptions
https://nextjs.org/docs/app/api-reference/config/next-config-js/useLightningcss
next.config.js: useLightningcss | Next.js
May 19, 2026 - Enable experimental support for Lightning CSS.
next config js
https://nextjs.org/docs/app/api-reference/config/next-config-js/assetPrefix
next.config.js: assetPrefix | Next.js
May 13, 2026 - Learn how to use the assetPrefix config option to configure your CDN.
next config js
https://nextjs.org/docs/app/api-reference/config/next-config-js/optimizePackageImports
next.config.js: optimizePackageImports | Next.js
May 28, 2026 - API Reference for optimizePackageImports Next.js Config Option
next config js
https://nextjs.org/docs/app/api-reference/config/next-config-js/images
next.config.js: images | Next.js
May 13, 2026 - Custom configuration for the next/image loader
next config jsimages
https://nextjs.org/docs/app/api-reference/config/next-config-js/turbopack
next.config.js: turbopack | Next.js
May 13, 2026 - Configure Next.js with Turbopack-specific options
next config js
https://nextjs.org/docs/app/api-reference/config/next-config-js/transpilePackages
next.config.js: transpilePackages | Next.js
May 7, 2026 - Automatically transpile and bundle dependencies from local packages (like monorepos) or from external dependencies (`node_modules`).
next config js
https://nextjs.org/docs/pages/api-reference/config/next-config-js/httpAgentOptions
next.config.js Options: httpAgentOptions | Next.js
May 18, 2026 - Next.js will automatically use HTTP Keep-Alive by default. Learn more about how to disable HTTP Keep-Alive here.
next config jsoptions
https://nextjs.org/docs/app/api-reference/config/next-config-js/cacheComponents
next.config.js: cacheComponents | Next.js
May 31, 2026 - Learn how to enable the cacheComponents flag in Next.js.
next config js
https://nextjs.org/docs/app/api-reference/config/next-config-js/staticGeneration
next.config.js: staticGeneration* | Next.js
May 28, 2026 - Learn how to configure static generation in your Next.js application.
next config js
https://nextjs.org/docs/pages/api-reference/config/next-config-js/productionBrowserSourceMaps
next.config.js Options: productionBrowserSourceMaps | Next.js
May 19, 2026 - Enables browser source map generation during the production build.
next config jsoptions
https://nextjs.org/docs/app/api-reference/config/next-config-js/viewTransition
next.config.js: viewTransition | Next.js
May 7, 2026 - Enable ViewTransition API from React in App Router
next config js
https://nextjs.org/docs/pages/api-reference/config/next-config-js/webpack
next.config.js Options: webpack | Next.js
May 13, 2026 - Learn how to customize the webpack config used by Next.js
next config jsoptionswebpack
https://nextjs.org/docs/app/api-reference/config/next-config-js/logging
next.config.js: logging | Next.js
Jun 1, 2026 - Configure logging behavior in the terminal when running Next.js in development mode, including fetch logging, incoming requests, and forwarding browser console...
next config jslogging
https://nextjs.org/docs/pages/api-reference/config/next-config-js/optimizePackageImports
next.config.js Options: optimizePackageImports | Next.js
May 13, 2026 - API Reference for optimizePackageImports Next.js Config Option
next config jsoptions
https://nextjs.org/docs/pages/api-reference/config/next-config-js/proxyClientMaxBodySize
next.config.js Options: experimental.proxyClientMaxBodySize | Next.js
May 19, 2026 - Configure the maximum request body size when using proxy.
next config jsoptionsexperimental
https://nextjs.org/docs/app/api-reference/config/next-config-js/reactStrictMode
next.config.js: reactStrictMode | Next.js
May 28, 2026 - The complete Next.js runtime is now Strict Mode-compliant, learn how to opt-in
next config js
https://nextjs.org/docs/app/api-reference/config/next-config-js/allowedDevOrigins
next.config.js: allowedDevOrigins | Next.js
May 28, 2026 - Use `allowedDevOrigins` to configure additional origins that can request the dev server.
next config js
https://nextjs.org/docs/app/api-reference/config/next-config-js/trailingSlash
next.config.js: trailingSlash | Next.js
May 19, 2026 - Configure Next.js pages to resolve with or without a trailing slash.
next config js
https://nextjs.org/docs/app/api-reference/config/next-config-js/typescript
next.config.js: typescript | Next.js
May 28, 2026 - Configure how Next.js handles TypeScript errors during production builds and specify a custom tsconfig file.
next config jstypescript
https://nextjs.org/docs/app/api-reference/config/next-config-js/compress
next.config.js: compress | Next.js
May 28, 2026 - Next.js provides gzip compression to compress rendered content and static files, it only works with the server target. Learn more about it here.
next config jscompress
https://nextjs.org/docs/app/api-reference/config/next-config-js/generateBuildId
next.config.js: generateBuildId | Next.js
May 19, 2026 - Configure the build id, which is used to identify the current build in which your application is being served.
next config js
https://nextjs.org/docs/pages/api-reference/config/next-config-js/compress
next.config.js Options: compress | Next.js
May 28, 2026 - Next.js provides gzip compression to compress rendered content and static files, it only works with the server target. Learn more about it here.
next config jsoptionscompress
https://nextjs.org/docs/app/api-reference/config/next-config-js/distDir
next.config.js: distDir | Next.js
Jun 1, 2026 - Set a custom build directory to use instead of the default .next directory.
next config js
https://nextjs.org/docs/app/api-reference/config/next-config-js/reactCompiler
next.config.js: reactCompiler | Next.js
May 19, 2026 - Enable the React Compiler to automatically optimize component rendering.
next config js
https://nextjs.org/docs/app/api-reference/config/next-config-js/typedRoutes
next.config.js: typedRoutes | Next.js
May 7, 2026 - Enable support for statically typed links.
next config js
https://nextjs.org/docs/app/api-reference/config/next-config-js/cacheLife
next.config.js: cacheLife | Next.js
May 19, 2026 - Learn how to set up cacheLife configurations in Next.js.
next config js
https://nextjs.org/docs/pages/api-reference/config/next-config-js/basePath
next.config.js Options: basePath | Next.js
May 31, 2026 - Use `basePath` to deploy a Next.js application under a sub-path of a domain.
next config jsoptions
https://nextjs.org/docs/app/api-reference/config/next-config-js/incrementalCacheHandlerPath
next.config.js: cacheHandler | Next.js
May 19, 2026 - Configure the Next.js cache used for storing and revalidating data to use any external service like Redis, Memcached, or others.
next config js
https://nextjs.org/docs/app/api-reference/config/next-config-js/serverComponentsHmrCache
next.config.js: serverComponentsHmrCache | Next.js
May 27, 2026 - Configure whether fetch responses in Server Components are cached across HMR refresh requests.
next config js
https://nextjs.org/blog/next-5-1
Next.js 5.1: Faster Page Resolution, Environment Config & More | Next.js
Next.js 5.1 features support for environment configuration, phases, source maps, and new Next.js plugins.
next jsfasterresolutionenvironmentconfig