Stone.js API
    Preparing search index...

    Represents the NodeHttpAdapter configuration options for the application.

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

    Hierarchy

    • Partial<AppConfig<IncomingHttpEvent, OutgoingHttpResponse>>
      • NodeHttpAdapterConfig

    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.

    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.

    http: Partial<HttpConfig>
    kernel?: KernelConfig<IncomingHttpEvent, OutgoingHttpResponse>

    Kernel configurations for the application.

    lifecycleHooks?: LifecycleHookType<
        IBlueprint,
        any,
        any,
        IncomingHttpEvent,
        OutgoingHttpResponse,
    >

    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<IncomingHttpEvent, OutgoingHttpResponse>[]

    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.