There was an error while loading. Please reload this page.
1 parent 22bdeb1 commit af1687dCopy full SHA for af1687d
index.js
@@ -387,9 +387,7 @@ async function fastifyStatic (fastify, opts) {
387
}
388
389
async function serveFileHandler (req, reply) {
390
- // TODO: remove the fallback branch when bump major
391
- /* c8 ignore next */
392
- const routeConfig = req.routeOptions?.config || req.routeConfig
+ const routeConfig = req.routeOptions?.config
393
return pumpSendToReply(req, reply, routeConfig.file, routeConfig.rootPath)
394
395
0 commit comments