Prerequisites
Issue
From looking at git blame, the returns were added as part of #140, however I have been getting away with not returning reply.sendFile() when using fastify-static since at least Fastify v3.20.2 i.e:
fastify
.get('/another/path', (req, reply) => {
reply.sendFile('myHtml.html');
})
.get('/other-other-benz', (req, reply) => {
reply.sendFile('myHtml.html');
});
Outside of returning the reply in an async handler, I don't think they're needed?
Prerequisites
Issue
From looking at
git blame, the returns were added as part of #140, however I have been getting away with not returningreply.sendFile()when usingfastify-staticsince at least Fastify v3.20.2 i.e:Outside of returning the reply in an async handler, I don't think they're needed?