Environment variables
If there are duplicate keys between the app and the task's Config Vars, the value from the Task Config Var will be used.
Similar to the App's Config Vars, you can also add them on the task level.

By default, when each task is executed, the environment variables contains the following. If set, the App and Task Config Vars will also be included in the environment variable. You can access the environment variables using
process.env
// console.log(process.env);
{
"SHYPYARD_FUNCTION_ID": "...",
"SHYPYARD_APP_ID": "...",
"SHYPYARD_ENV": "dev",
"SHYPYARD_TASK_ID": "...",
"SHYPYARD_TOPIC": "...",
"SHYPYARD_REQUEST_ID": "..."
}
Last modified 2yr ago