Configure `directoryListing` and `unlisted`
mainDirectory Listing
When a path is a directory, serve-handler can render a file list.
- Set
directoryListing: falseto disable it globally. - Use an array of
minimatchglobs to enable/disable it for specific paths.
Unlisted
To hide specific files or directories from the directory listing, add them to the unlisted array using minimatch globs.
{
"directoryListing": [
"/assets/**",
"/!assets/private"
],
"unlisted": [
".DS_Store",
".git"
]
}