fix(cli): disable directory listing in serve (#6701)

This commit is contained in:
Joshua Chen 2022-02-17 21:53:40 +08:00 committed by GitHub
parent a6f53aa9d2
commit 405d5d1a3e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -67,6 +67,7 @@ export default async function serve(
cleanUrls: true,
public: dir,
trailingSlash,
directoryListing: false,
});
});