Minimal required configuration
The minimal required configuration needed by AppSignal for Node.js is the following items. If they are not present, AppSignal will not send any data to AppSignal.com.- A valid Push API Key
- An application name
- An application environment (
development/production/testby settingNODE_ENV) - The setting
active: true
Appsignal constructor. We recommend creating an appsignal.cjs file to require and initialize AppSignal.
APPSIGNAL_PUSH_API_KEY environment variable is set.
Configuration options
Read about all the configuration options on the options page.Application environments
An application can have multiple environments such as “development”, “test”, “staging” and “production”. To separate the errors and performance issues that occur in the “development” environment and those in “production”, it’s possible to set the environment in which the application is running with theNODE_ENV environment variable.
If you activate AppSignal per environment, you can set the active property of the options you pass into the constructor conditionally: