Forest Admin - API reference
    Preparing search index...

    Type Alias AgentOptions

    Options to configure behavior of an agent's forestadmin driver

    type AgentOptions = {
        authSecret: string;
        bodyParserOptions?: {
            enableRawChecking?: boolean;
            jsonLimit?: number | string;
        };
        customizeErrorMessage?: ((error: Error) => string | null)
        | null;
        envSecret: string;
        experimental?: {
            updateRecordCustomActions?: boolean;
            webhookCustomActions?: boolean;
        };
        forestAdminClient?: ForestAdminClient;
        forestAppUrl?: string;
        forestServerUrl?: string;
        ignoreMissingSchemaElementErrors?: boolean;
        instantCacheRefresh?: boolean;
        isProduction: boolean;
        limitExportSize?: number;
        logger?: Logger;
        loggerLevel?: LoggerLevel;
        maxBodySize?: string;
        permissionsCacheDurationInSeconds?: number;
        prefix?: string;
        schemaPath?: string;
        skipSchemaUpdate?: boolean;
        typingsMaxDepth?: number;
        typingsPath?: string
        | null;
        useUnsafeActionEndpoint?: boolean;
    }
    Index

    Properties

    authSecret: string
    bodyParserOptions?: { enableRawChecking?: boolean; jsonLimit?: number | string }

    Refer to @koa/bodyparser options

    customizeErrorMessage?: ((error: Error) => string | null) | null
    envSecret: string
    experimental?: {
        updateRecordCustomActions?: boolean;
        webhookCustomActions?: boolean;
    }
    forestAdminClient?: ForestAdminClient
    forestAppUrl?: string
    forestServerUrl?: string
    ignoreMissingSchemaElementErrors?: boolean

    If true, the agent will not throw an error when a customization error occurs, because of a missing collection for example.

    false
    
    instantCacheRefresh?: boolean
    isProduction: boolean
    limitExportSize?: number
    logger?: Logger
    loggerLevel?: LoggerLevel
    maxBodySize?: string

    use bodyParserOptions.jsonLimit instead.

    remove option

    permissionsCacheDurationInSeconds?: number
    prefix?: string
    schemaPath?: string
    skipSchemaUpdate?: boolean
    typingsMaxDepth?: number
    typingsPath?: string | null
    useUnsafeActionEndpoint?: boolean