Netlify Functions and Env Variables

I am trying to use Netlify lambda functions but I need access to certain environmental variables. It does not seem like I have access to those variables that I set in my Netlify.toml, but only have access to the environmental variables set up in the Netlify UI. Is there no way to access variables within the toml with a lambda function?

The function needs to know what type of build (branch-deploy, production, staging, develop, etc.), but because process.env doesn’t have access to the toml environment variables, is there a better way to know what type of build I have when the lambda function fires?

joe - did you read through this already?

I was stuck in the same issue some time back and unfortunately at the moment there is no way for the lambda to have access to the .toml environment variables.

check Toml environment variable available to functions