Runtime environment variables
NodeJS scripts access environment variables through the global variable process.env. To quote the NodeJS documentation:
The process core module of Node.js provides the
envproperty which hosts all the environment variables that were set at the moment the process was started.
Tips
- Connection properties will be available on
process.envwithout any further configuration or code from CodeNOW users. - Use deployment configuration files to add your own runtime variables.
- The NodeJS developer community commonly uses the
dotenvnpm package to manage runtime environment variables.