Unverified Commit 73e1fb4d authored by Tom Scott's avatar Tom Scott Committed by GitHub

Add version note for `has` property (#24836)

The guides for `next.config.js` never specify that the `has: { }` syntax is only available for v10.1, and not for v10.0. Add a note that indicates these features are only available in the latest version.

## Documentation / Examples

- [x] Make sure the linting passes
parent 802af5ff
......@@ -13,6 +13,15 @@ description: Add custom HTTP headers to your Next.js app.
</ul>
</details>
<details>
<summary><b>Version History</b></summary>
| Version | Changes |
| --------- | ------------ |
| `v10.2.0` | `has` added. |
</details>
Headers allow you to set custom HTTP headers for an incoming request path.
To set custom HTTP headers you can use the `headers` key in `next.config.js`:
......
......@@ -13,6 +13,15 @@ description: Add redirects to your Next.js app.
</ul>
</details>
<details>
<summary><b>Version History</b></summary>
| Version | Changes |
| --------- | ------------ |
| `v10.2.0` | `has` added. |
</details>
Redirects allow you to redirect an incoming request path to a different destination path.
Redirects are only available on the Node.js environment and do not affect client-side routing.
......
......@@ -13,6 +13,15 @@ description: Add rewrites to your Next.js app.
</ul>
</details>
<details>
<summary><b>Version History</b></summary>
| Version | Changes |
| --------- | ------------ |
| `v10.2.0` | `has` added. |
</details>
Rewrites allow you to map an incoming request path to a different destination path.
Rewrites are only available on the Node.js environment and do not affect client-side routing.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment