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 property and accessing the variables from process.env, however after some further digging and logging of process.env in the build output, it appears that only variables with the type set to secret are passed into runtime.
Does anyone have any suggestions on how to approach retrieving plain text variables without changing them to be secrets?2 Replies
https://github.com/ElMassimo/vite-plugin-environment/issues/1#issuecomment-965081223 this?
Or this? https://github.com/ElMassimo/vite-plugin-environment?tab=readme-ov-file#loading-prefixed-variables
alternatively, Vite discord can probably help best -- https://discord.gg/vite
This isn't a Pages issue.
I ended up fixing it by deleting my
wrangler.toml file from my repository.
Thanks for the suggestion though!