From 204ed48a792b9e832f9c6fe4a9af788c9cb804a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=BCrg=C3=BCn=20Day=C4=B1o=C4=9Flu?= Date: Wed, 7 Feb 2024 01:07:27 +0100 Subject: [PATCH] fix not found --- index.js | 1 - 1 file changed, 1 deletion(-) diff --git a/index.js b/index.js index 923597b..3cde452 100644 --- a/index.js +++ b/index.js @@ -134,7 +134,6 @@ async function fastifyStatic (fastify, opts) { for (let rootPath of roots) { rootPath = rootPath.split(path.win32.sep).join(path.posix.sep) !rootPath.endsWith('/') && (rootPath += '/') - const files = await glob('**/**', { cwd: rootPath, absolute: false, follow: true, nodir: true, dot: opts.serveDotFiles })