This strategy defines health checks which are included as part of the
/health endpoint. They should only be used to monitor critical systems
on which proper functioning of the Vendure server depends.
Custom strategies should be added to the systemOptions.healthChecks array.
By default, Vendure includes the TypeORMHealthCheckStrategy, so if you set the value of the healthChecks
array, be sure to include it manually.
Vendure also ships with the HttpHealthCheckStrategy, which is convenient for adding a health check dependent on an HTTP ping.
This is configured via the systemOptions.healthChecks property of
your VendureConfig.
Example
InjectableStrategy() => HealthIndicatorFunctionShould return a HealthIndicatorFunction which performs the check and resolves to a status payload.