Set NODE_ENV for better performance

The NODE_ENV environment variable determines the environment is running in. This should be set to production in production environments or performance will be significantly degraded.

In development environments it should be set to development, which is the default.

How to set this environment variable will depend on how you start the daemon. If you use the systemd unit shipped with the package, NODE_ENV will be set to production for you automatically.

If you’re not using the systemd unit, be sure to restart after you set up NODE_ENV.