Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -387,9 +387,7 @@ async function fastifyStatic (fastify, opts) {
}

async function serveFileHandler (req, reply) {
// TODO: remove the fallback branch when bump major
/* c8 ignore next */
const routeConfig = req.routeOptions?.config || req.routeConfig
const routeConfig = req.routeOptions?.config
return pumpSendToReply(req, reply, routeConfig.file, routeConfig.rootPath)
}
}
Expand Down
Loading