diff --git a/docs/api-routes/api-middlewares.md b/docs/api-routes/api-middlewares.md index 7f1b41d398d9..40b15ac2f718 100644 --- a/docs/api-routes/api-middlewares.md +++ b/docs/api-routes/api-middlewares.md @@ -34,7 +34,9 @@ export const config = { The `api` object includes all configs available for API routes. -`bodyParser` Enables body parsing, you can disable it if you want to consume it as a `Stream`: +`bodyParser` is automatically enabled. If you want to consume the body as a `Stream` or with [`raw-body`](https://www.npmjs.com/package/raw-body), you can set this to `false`. + +One use case for disabling the automatic `bodyParsing` is to allow you to verify the raw body of a **webhook** request, for example [from GitHub](https://docs.github.com/en/developers/webhooks-and-events/webhooks/securing-your-webhooks#validating-payloads-from-github). ```js export const config = {