Secrets + env variables in serverless functions
* https://cloudflare.vanishing-page.pages.dev/
* https://ea1e2f21.vanishing-page.pages.dev/
* account ID: 91f17a38dc4e8d98c2571e35ab3982f1
Hello. I need to set a secret environment variable and access it via a serverless function + pages site.
On my local dev environment all is working correctly via a file
.dev.vars
. I have been setting the env variables + secrets via the Cloudinary GUI, but every time I access the function it is undefined.
My feeling is that I am missing something simple. Is there anything else I can check?
This is for a preview/branch deploy, if that matters.
Thanks in advance for any help; this has been driving me crazy.1 Reply
I got it. There is a small select for environmnet within the settings page.