@axonlabs/core - v0.13.1
    Preparing search index...

    Interface AxonConfig

    interface AxonConfig {
        CORS?: CorsOptions;
        DEBUG?: boolean;
        DEPENDENCY_CACHE?: boolean;
        HTTPS?: AxonHttpsConfig;
        LOGGER?: boolean;
        LOGGER_VERBOSE?: boolean;
        MIDDLEWARE_TIMEOUT?: number;
        PROJECT_ENV?: "development" | "production";
        RESPONSE_MESSAGES?: AxonResponseMessage;
    }
    Index

    Properties

    Cors configuration for AxonCore.

    DEBUG?: boolean

    AxonCore debug mode.

    DEPENDENCY_CACHE?: boolean

    Cache dependencies of controller, middleware handlers.

    This option will improve the performance of your application but it affect on updating dependencies and their lifecycle because they will resolve just once in lifetime of application.

    false
    

    Https configuration for AxonCore.

    LOGGER?: boolean

    AxonCore logger.

    LOGGER_VERBOSE?: boolean

    Verboose mode of logger.

    MIDDLEWARE_TIMEOUT?: number

    A global variable to set default middleware timeout for all routes before breaking the middleware chain.

    10000ms | 10s
    
    PROJECT_ENV?: "development" | "production"

    Project environment type to manage features more secure and automatically in AxonCore.

    development
    
    RESPONSE_MESSAGES?: AxonResponseMessage

    Configuration for AxonCore custom response messages.