firebase/superstatic

View on GitHub
src/options.ts

Summary

Maintainability
A
0 mins
Test Coverage
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;
}