Skip to content

Commit ab96f51

Browse files
Update content/techniques/performance.md
Co-authored-by: Kamil Mysliwiec <[email protected]>
1 parent df85ad6 commit ab96f51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/techniques/performance.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ new FastifyAdapter({ logger: true });
7777

7878
#### Middleware
7979

80-
The middleware with `fastify` "works", but it retrieves only the raw `req` and `res` objects and not the fastify wrapper. This is a side effect of how `middie` works and `fastify` already talks about it in its documents for more information see [here](https://www.fastify.io/docs/latest/Reference/Middleware/).
80+
Middleware functions (when `@nestjs/platform-fastify` is used) retrieve the raw `req` and `res` objects instead of Fastify's wrappers. This is how the `middie` package works (that's used under the hood) and `fastify` - check out this [page(https://www.fastify.io/docs/latest/Reference/Middleware/) for more information,
8181

8282
> warning **Warning** The middleware in `fastify` has an IncomingMessage request type `FastifyRequest['raw']` and a ServerResponse type `FastifyReply['raw']`.
8383

0 commit comments

Comments
 (0)