Skip to main content
Go to Latest
File
import { DarkflareError } from './DarkflareError.d.ts'
export type DarkflareConfiguration = { /** the name for your app (used for caching). */ name?: string
/** the base for your app, e.g. /api. */ base?: string
/** the allowed origin for incoming requests. */ cors?: string
/** cache response for a given amount of seconds. */ cache?: number | string
/** pass request to origin on exception. */ passThroughOnException?: boolean
onError?: (err: DarkflareError, request: Request) => Response
realm?: { app: string database: string token: string }}