Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update info on how to process webhooks by disabling bodyParser #33909

Merged
merged 5 commits into from Feb 2, 2022
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion docs/api-routes/api-middlewares.md
Expand Up @@ -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` Enables body parsing. If you want to consume it as a `Stream`, you can disable it.
amandeepmittal marked this conversation as resolved.
Show resolved Hide resolved

Disabling it will allow you to verify the raw body of a **webhook** request.
amandeepmittal marked this conversation as resolved.
Show resolved Hide resolved

```js
export const config = {
Expand Down