Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Secrets + env variables in serverless functions - Cloudflare Developers
CD
Cloudflare Developers
•
16mo ago
•
1 reply
nichoth
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
.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
.
Cloudflare Developers
Join
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
85,042
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
env variables
CD
Cloudflare Developers / pages-help
2y ago
Public system env variables
CD
Cloudflare Developers / pages-help
12mo ago
Dashboard missing preview env variables?
CD
Cloudflare Developers / pages-help
17mo ago
How to access environment variables in helper functions ?
CD
Cloudflare Developers / pages-help
3y ago