Is there any way for functions to use netlify.toml env vars?

Hi, the title says it all, I have a netlify.toml file with a [build.environment] section, but the variables are not accessible inside my netlify functions under process.env as expected. Is there any way to do this?

At the moment, no. The only way for Functions to access environment variables is by defining them in the UI before deploying the Functions. There are open feature requests to support what you’ve asked.