💬 Question here
I can decorate requests using fastify.decorateRequest.
I can also create an onRequest hook and extend the request object there.
What are the fundamental differences between the two approaches?
Your Environment
- node version: 16
- fastify version: 3
- os: Linux
💬 Question here
I can decorate requests using fastify.decorateRequest.
I can also create an onRequest hook and extend the request object there.
What are the fundamental differences between the two approaches?
Your Environment