Variables not available in pages build?

The "Variables and Secrets" UI suggests we can edit "text, secret, or build variables." However, the only options in the UI are "text" and "secret." I figured they would all just get shoved into the build... but my build has been failing on missing variables. Am I missing something here? How do we set build variables on CloudFlare pages?
No description
4 Replies
Walshy
Walshy2mo ago
they do get set on the build if you printenv it'll show them there
Mikkel Svartveit
@Walshy | Workers/Pages This worked perfectly for me with Cloudflare Pages, but with the new Cloudflare Workers Static Assets my variables are no longer accessible at build time. Is that intentional?
Walshy
Walshy3w ago
Are you making sure to set the build variables not normal env vars? They're different in Workers
Mikkel Svartveit
@Walshy | Workers/Pages I see. I made a post here to explain my use case in more detail: https://discord.com/channels/595317990191398933/1359464622188531753/1359464622188531753

Did you find this page helpful?