Options to configure the flow server.

interface FlowServerOptions {
    cors?: CorsOptions;
    flows: (Flow<any, any, any> | FlowWithAuthPolicy<any, any, any>)[];
    jsonParserOptions?: OptionsJson;
    pathPrefix?: string;
    port?: number;
}

Properties

cors?: CorsOptions

CORS options for the server.

flows: (Flow<any, any, any> | FlowWithAuthPolicy<any, any, any>)[]

List of flows to expose via the flow server.

jsonParserOptions?: OptionsJson

JSON body parser options.

pathPrefix?: string

HTTP method path prefix for the exposed flows.

port?: number

Port to run the server on. Defaults to env.PORT or 3400.