Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
princefishthrower opened this issue Jul 23, 2022 · 3 comments

Comments

@princefishthrower
Copy link

princefishthrower commented Jul 23, 2022

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.

@jeslenbucci
Copy link

Having the exact same issue.

@jeslenbucci
Copy link

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/

@princefishthrower
Copy link
Author

@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 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants