rsnext/examples/headers/next.config.js
Henrik Wenz 92aafcbcf1
[Docs] Add config types to all examples (#40083)
<!--
Thanks for opening a PR! Your contribution is much appreciated.
In order to make sure your PR is handled as smoothly as possible we request that you follow the checklist sections below.
Choose the right checklist for the change that you're making:
-->

## Summary

- Added jsdoc typing for all examples using `next.config.js`
- Added jsdoc typing for all examples using `tailwind.config.js`

## Documentation / Examples

- [x] Make sure the linting passes by running `pnpm lint`
- [x] The examples guidelines are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing.md#adding-examples)
2022-08-31 16:41:22 -05:00

25 lines
469 B
JavaScript

/** @type {import('next').NextConfig} */
module.exports = {
async headers() {
return [
{
source: '/about',
headers: [
{
key: 'X-About-Custom-Header',
value: 'about_header_value',
},
],
},
{
source: '/news/:id',
headers: [
{
key: 'X-News-Custom-Header',
value: 'news_header_value',
},
],
},
]
},
}