Options to configure the flow server.

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

Properties

cors?: CorsOptions

CORS options for the server.

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

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.