owopi
owopi
CDCloudflare Developers
Created by owopi on 11/2/2023 in #pages-help
unable to use envrionment variables using Astro JS
hello! I am trying to use environment variables in my static Astro JS site, but when using process.env.VAR or import.meta.env.VAR (like the Astro docs suggest), I get build errors for both. Whereas with netlify and vercel, both work and give me successful deploys I have added the same env vars in both, and my cf pages builds suceeded last week but the same code no longer works. Please let me know if more details are needed.
12 replies