logoNext.js English
DocumentationBlogLearn
Getting Started
Installation
Project Structure
Building Your Application
Routing
Data Fetching
Rendering
Caching
Styling
Optimizing
Configuring
Deploying
Upgrading
API Reference
create-next-app
Edge Runtime
Next.js CLI
Components
File Conventions
Functions
next.config.js Options
appDir
assetPrefix
basePath
compress
devIndicators
distDir
env
eslint
exportPathMap
generateBuildId
generateEtags
headers
httpAgentOptions
images
incrementalCacheHandlerPath
mdxRs
onDemandEntries
optimizePackageImports
output
pageExtensions
poweredByHeader
productionBrowserSourceMaps
reactStrictMode
redirects
rewrites
serverComponentsExternalPackages
trailingSlash
transpilePackages
turbo
typedRoutes
typescript
urlImports
webpack
webVitalsAttribution
Architecture
Community
logoNext.js English
DocumentationBlogLearn
Introduction/API Reference/next.config.js Options/poweredByHeader

poweredByHeader

By default Next.js will add the x-powered-by header. To opt-out of it, open next.config.js and disable the poweredByHeader config:

next.config.js
module.exports = {
  poweredByHeader: false,
}

pageExtensions

Extend the default page extensions used by Next.js when resolving pages in the Pages Router.

productionBrowserSourceMaps

Enables browser source map generation during the production build.