4.0.0-alpha.42 • Published 3 months ago

@concepta/nestjs-core v4.0.0-alpha.42

Weekly downloads
-
License
BSD-3-Clause
Repository
-
Last release
3 months ago

Rockets NestJS Core

The core module is a dependency of all Rockets modules.

Project

NPM Latest NPM Downloads GH Last Commit GH Contrib NestJS Dep

Installation

yarn add @concepta/nestjs-core

Configuration

Available configuration options:

  1. Deferred Registration

Deferred Registration

By default, modules that are registered using .deferred() do not have a timeout set.

If you module wirings make some asynchronous calls that may experience significant delays during start up, it is a good idea to set the global ROCKETS_MODULE_DEFERRED_TIMEOUT environment variable to the number of milliseconds that each module should timeout at.

Examples

Your .env file:

# global deferred timeout
ROCKETS_MODULE_DEFERRED_TIMEOUT=5000

Your shell:

export ROCKETS_MODULE_DEFERRED_TIMEOUT=5000;