Stone.js API
    Preparing search index...

    Application-level configuration that extends AppConfig with React-specific settings.

    interface UseReactAppConfig {
        adapter?: Partial<AdapterConfig<any, any, any, U, any, V>>;
        adapters?: AdapterConfig<
            any,
            any,
            any,
            ReactIncomingEvent,
            any,
            ReactOutgoingResponse,
        >[];
        aliases?: Record<string, any>;
        blueprint?: BlueprintConfig<IBlueprint, any>;
        debug?: boolean;
        env?: Environment;
        fallback_locale?: string;
        kernel?: KernelConfig<ReactIncomingEvent, ReactOutgoingResponse>;
        lifecycleHooks?: LifecycleHookType<
            IBlueprint,
            any,
            any,
            ReactIncomingEvent,
            ReactOutgoingResponse,
        >;
        listeners?: MetaEventListener<any>[];
        liveConfigurations?: MixedConfiguration[];
        locale?: string;
        logger?: LoggerConfig;
        middleware?: MixedPipe<ReactIncomingEvent, ReactOutgoingResponse>[];
        name?: string;
        providers?: MixedServiceProvider[];
        secret?: string;
        services?: MetaService[];
        subscribers?: MixedEventSubscriber[];
        timezone?: string;
        useReact: UseReactConfig;
        [key: string]: unknown;
    }

    Hierarchy

    Indexable

    • [key: string]: unknown
    Index
    adapter?: Partial<AdapterConfig<any, any, any, U, any, V>>

    Current Adapter configurations for the application. This key allow you to specify the current adapter with the alias key.

    adapters?: AdapterConfig<
        any,
        any,
        any,
        ReactIncomingEvent,
        any,
        ReactOutgoingResponse,
    >[]

    Adapter configurations for the application. List of all adapters used in the application.

    aliases?: Record<string, any>

    Class aliases to be registered when the application starts. These aliases provide shorthand references to commonly used classes.

    blueprint?: BlueprintConfig<IBlueprint, any>

    Configuration options for building the application blueprint, including middleware and pipe priorities.

    debug?: boolean

    Determines if the application is in debug mode. When enabled, detailed error messages with stack traces will be shown.

    env?: Environment

    The current environment in which the application is running. Possible values are development, production, and test.

    fallback_locale?: string

    The fallback locale used when a translation for the default locale is unavailable.

    Kernel configurations for the application.

    lifecycleHooks?: LifecycleHookType<
        IBlueprint,
        any,
        any,
        ReactIncomingEvent,
        ReactOutgoingResponse,
    >

    Lifecycle hooks for the application. These hooks allow you to run custom code at different stages of the application lifecycle.

    listeners?: MetaEventListener<any>[]

    Event listeners to be automatically registered when the application starts. This allows you to specify functions to listen for specific events.

    liveConfigurations?: MixedConfiguration[]

    Live configurations are loaded at each request. By default, configurations are loaded once when the application starts. This is useful for defining dynamic configurations that do not require a restart to apply changes.

    locale?: string

    The default locale for the application.

    logger?: LoggerConfig

    Logging settings, including the logger instance and error reporting configurations.

    middleware?: MixedPipe<ReactIncomingEvent, ReactOutgoingResponse>[]

    Middleware configuration options for specific stages of the application lifecycle.

    name?: string

    The name of the application.

    providers?: MixedServiceProvider[]

    Service providers to be automatically loaded for each request to the application.

    secret?: string

    A secret key used for encryption purposes throughout the application. This key should be kept secure.

    services?: MetaService[]

    Services to be automatically registered when the application starts.

    subscribers?: MixedEventSubscriber[]

    Subscribers to be automatically registered when the application starts. Subscribers are used for handling and responding to events.

    timezone?: string

    The default timezone for the application.

    useReact: UseReactConfig

    React integration settings, extending the base application config.