netlify-plugin-contextual-env icon indicating copy to clipboard operation
netlify-plugin-contextual-env copied to clipboard

Is this plugin also supposed to work for environment variables in Netlify's serverless functions?

Open princefishthrower opened this issue 2 years ago • 3 comments

I see this plugin does the environment variable contextualizing specifically at build time, but I guess I also expected it to work for my serverless functions. However, after a few tests, the staging instances of my serverless functions are indeed using the production environment variables. So I'm not sure if this just isn't in the scope of this package, or if this is a bug report.

princefishthrower avatar Jul 23 '22 19:07 princefishthrower

Having the exact same issue.

jeslenbucci avatar Oct 18 '22 21:10 jeslenbucci

Also, this might be helpful since it's baked into Netlify now via Labs: https://www.netlify.com/blog/branch-specific-environment-variable-values-from-the-netlify-ui-cli-or-api/

jeslenbucci avatar Oct 18 '22 21:10 jeslenbucci

@jeslenbucci - oh wow, that's huge! Wonder how long it takes before they move it out of beta, but I'll probably activate labs for my account anyway 😄

princefishthrower avatar Oct 21 '22 06:10 princefishthrower