I'm using a workaround for some time
app.getHttpAdapter()
.getInstance()
.addHook('onRequest', (request, reply, done) => {
reply.setHeader = function (key, value) {
return this.raw.setHeader(key, value);
};
reply.end = function () {
this.raw.end();
};
request.res = reply;
done();
});
But since the new fastify update in nestjs v10 i'm getting some errors:
Did anyone maybe migrated this part?