Client
is an optional Class you can pass to the serve
function to override some global settings.
By default, we will inject a new instance of the Client
class in your serve
method with the following defaults:
Client
constructor the Client
class will look for the following environment variables:
NOVU_SECRET_KEY
- Your Novu Secret KeyNOVU_API_URL
- Defaults to https://api.novu.co
. For EU customers, this should be set to https://eu.api.novu.co
.process.env.NODE_ENV=development
, the following rules will auto apply:
strictAuthentication
will be set to false
.