SystemOptions
SystemOptions
Options relating to system functions.
Signature
interface SystemOptions {
healthChecks?: HealthCheckStrategy[];
errorHandlers?: ErrorHandlerStrategy[];
cacheStrategy?: CacheStrategy;
}
healthChecks
Defines an array of HealthCheckStrategy instances which are used by the /health
endpoint to verify
that any critical systems which the Vendure server depends on are also healthy.
errorHandlers
Defines an array of ErrorHandlerStrategy instances which are used to define logic to be executed when an error occurs, either on the server or the worker.
cacheStrategy
Defines the underlying method used to store cache key-value pairs which powers the CacheService.