Genkit JS API reference
    Preparing search index...

    Interface FlowServerOptions

    Options to configure the flow server.

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

    Properties

    cors?: CorsOptions

    CORS options for the server.

    flows: (
        | Flow<any, any, any>
        | FlowWithContextProvider<any, any, any, z.ZodTypeAny>
        | FlowWithOptions<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.