From 4ed6d50400136ff266000fae8d7af0b8b813dea8 Mon Sep 17 00:00:00 2001 From: chenos Date: Fri, 10 Nov 2023 09:26:30 +0800 Subject: [PATCH] fix(static-server): directoryListing: false (#3010) --- packages/core/server/src/gateway/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/core/server/src/gateway/index.ts b/packages/core/server/src/gateway/index.ts index fd8e3f23d..cc0c2f275 100644 --- a/packages/core/server/src/gateway/index.ts +++ b/packages/core/server/src/gateway/index.ts @@ -149,6 +149,7 @@ export class Gateway extends EventEmitter { await compress(req, res); return handler(req, res, { public: resolve(process.cwd()), + directoryListing: false, }); }