staticOptions

staticOptions

Description

This value sets options for the Express express.static() middleware, which serves the files in the staticFilesDirectory.

Example

Serve dotfiles – files whose names begin with a period – which Express ignores by default:

staticOptions: { dotfiles: "allow" }

For information on how to modify this setting, see Configuration File.