matchObject (optional) - Which URLs on the scheme this route serves. A route withoutmatchserves every URL.hoststring (optional) - Host name to match, for standard schemes. It is compared with the URL's host as a whole, case-insensitively; there is no wildcard or subdomain matching. Omit to match any host.pathstring (optional) - Path prefix to match, starting with/and written as it appears in a URL (percent-encoded). Defaults to/.
sourceObject - What the matched URLs are served from.typestring - Must bedirectory.rootstring - Absolute path of the directory. The part of the URL's path aftermatch.pathis resolved inside it; paths that would leave it are not served. May point into anasararchive.indexstring (optional) - File served for a URL whose path ends in/. Defaults toindex.html; an empty string disables it.headersRecord<string, string> (optional) - Response headers added to every file served by this route. Headers computed by the file loader, includingContent-Type,Content-Length, andContent-Range, will override these supplied values.