General
How to use environment variables?
- Create an environment variable and copy the environment variable key name
- Utilize the process environment variable
process.env.<KEYNAME>
, as shown below
In the code sample, S3_BUCKET, S3_REGION, S3_ACCESS_KEY_ID, and S3_SECRET_ACCESS_KEY are all environment variables.