You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there currently a way to access Cloudflare environment variables?
I tried moving my NeonDB database to Cloudflare Hyperdrive, but I’m not sure how to get the connection string because I don’t know how to access the environment variables. I ran into a similar issue with Cloudflare KV and ended up using Nitro’s unstorage implementation so I didn’t have to worry about environment variables. Is this possible at the moment?
Activity
Gonzalo-Bruna commentedon Jun 13, 2025
Is there currently a way to access Cloudflare environment variables?
I tried moving my NeonDB database to Cloudflare Hyperdrive, but I’m not sure how to get the connection string because I don’t know how to access the environment variables. I ran into a similar issue with Cloudflare KV and ended up using Nitro’s unstorage implementation so I didn’t have to worry about environment variables. Is this possible at the moment?
pi0 commentedon Jun 13, 2025
@Gonzalo-Bruna Using nitro, you can access to
process.envin production also in dev if you set them with script or.env.