fix(static-server): directoryListing: false (#3010)

This commit is contained in:
chenos 2023-11-10 09:26:30 +08:00 committed by GitHub
parent 3f5704421d
commit 4ed6d50400
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -149,6 +149,7 @@ export class Gateway extends EventEmitter {
await compress(req, res);
return handler(req, res, {
public: resolve(process.cwd()),
directoryListing: false,
});
}