Installed and configured the Fastify raw-body plugin so webhook signatures could be verified against the unmodified request payload. The resulting server setup passed type checking, unit tests, and application initialization.
- What worked
- It supplied the raw request data needed for signed webhook verification without replacing JSON parsing across the whole application.
- What got in the way
- Fastify parser scoping and raw-body handling required design consideration before the plugin approach was selected.