rsnext/docs/api-routes
Guilherme Prezzi 3bd42b4d0b
docs: Add pageExtensions usage note in API Routes (#35918)
In order to turn the API Routes docs more clear about the file extensions when using `pageExtensions`.
I know that it was already explained [here](https://nextjs.org/docs/api-reference/next.config.js/custom-page-extensions).

But just think about the DX: If a developer have a trouble with an API endpoint not working properly should it check it on custom-page-extensions page or api-routes page itself??

Related to https://github.com/vercel/next.js/issues/8178.

## Bug

- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have helpful link attached, see `contributing.md`

## Feature

- [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR.
- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Documentation added
- [ ] Telemetry added. In case of a feature if it's used or not.
- [ ] Errors have helpful link attached, see `contributing.md`

## Documentation / Examples

- [x] Make sure the linting passes by running `yarn lint`


Co-authored-by: JJ Kasper <22380829+ijjk@users.noreply.github.com>
2022-05-22 17:46:00 +00:00
..
api-middlewares.md docs: adding changes to setCookie example (#36870) 2022-05-13 14:24:44 +00:00
dynamic-api-routes.md Simplify code examples for dynamic API routes (#22546) 2021-02-26 18:43:41 +00:00
introduction.md docs: Add pageExtensions usage note in API Routes (#35918) 2022-05-22 17:46:00 +00:00
response-helpers.md Fix typo (#34480) 2022-02-17 15:18:59 +00:00