mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
Closes: https://linear.app/vercel/issue/DOC-4686/clean-up-routing-section Redirects: https://github.com/vercel/front/pull/47151 --------- Co-authored-by: Joseph <[email protected]> Co-authored-by: graphite-app[bot] <96075541+graphite-app[bot]@users.noreply.github.com>
15 lines
596 B
Plaintext
15 lines
596 B
Plaintext
---
|
|
title: poweredByHeader
|
|
description: Next.js will add the `x-powered-by` header by default. Learn to opt-out of it here.
|
|
---
|
|
|
|
{/* The content of this doc is shared between the app and pages router. You can use the `<PagesOnly>Content</PagesOnly>` component to add content that is specific to the Pages Router. Any shared content should not be wrapped in a component. */}
|
|
|
|
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:
|
|
|
|
```js filename="next.config.js"
|
|
module.exports = {
|
|
poweredByHeader: false,
|
|
}
|
|
```
|