UNPKG

superstatic

Version:

A static file server for fancy apps

23 lines (22 loc) 657 B
import { HandleFunction } from "connect"; import { Configuration } from "./config"; export interface MiddlewareOptions { fallthrough?: boolean; config?: string | Configuration; protect?: string; env?: string | Record<string, string>; cwd?: string; compression?: boolean; stack?: string | string[]; after?: Record<string, HandleFunction>; before?: Record<string, HandleFunction>; rewriters?: Record<string, unknown>; errorPage?: string; } export interface ServerOptions extends MiddlewareOptions { port?: number; hostname?: string; errorPage?: string; debug?: boolean; compression?: boolean; }