Set or update an environment variable.
Environment variable name
Value to assign
This function writes a value to the environment map. If the variable already exists, it will be overwritten.
setEnv("NODE_ENV", "production"); Copy
setEnv("NODE_ENV", "production");
Set or update an environment variable.