Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Plain text type environmental variables not included in build runtime - Cloudflare Developers
CD
Cloudflare Developers
•
15mo ago
•
3 replies
Max
Plain text type environmental variables not included in build runtime
Heyo
! I
've been running into a few issues with getting Cloudflare environmental variables working with my Vite frontend
.
Initially in my Vite build config I tried using the
define
define
property and accessing the variables from
process.env
process.env
, however after some further digging and logging of
process.env
process.env
in the build output
, it appears that only variables with the type set to
secret
secret
are passed into runtime
.
Does anyone have any suggestions on how to approach retrieving plain text variables without changing them to be secrets
?
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
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
plain text environment variables are not available under env
CD
Cloudflare Developers / pages-help
17mo ago
Script does not work with environmental variables
CD
Cloudflare Developers / pages-help
3y ago
environmental variables toml and dashboard
CD
Cloudflare Developers / pages-help
12mo ago
Are environment variables available at build or only runtime?
CD
Cloudflare Developers / pages-help
2y ago