Fastify
Integrate Nexa webhooks and file processing into a Fastify server.
Install
Full example
Raw body scoping
The addContentTypeParser override in the example above is scoped to a Fastify plugin (encapsulated scope). This means it only affects the /webhooks/nexa route and does not change how Fastify parses JSON for any other routes.
If you'd prefer a simpler setup and don't mind all routes receiving raw strings for application/json, you can register it at the top level:
You'll then need to call JSON.parse(req.body as string) in your other route handlers.