Interface StaticServerOptions

Defines the behavior of the static server.

Hierarchy

  • StaticServerOptions

Properties

allowedExtensions?: string[]

If specified, only files with these extensions will be served.

basePath?: string | string[] | UniversalPath

The path to the directory whose files should be served.

directoryListing?: boolean

If true, browsing to a directory route will show the directory listing page.

excludedExtensions?: string[]

If specified, files with these extensions will not be served.

indexFile?: string

If a file with this name exists in a directory, it will be served.