Bugeez
CDCloudflare Developers
•Created by Bugeez on 5/16/2024 in #pages-help
Can't import my env in my Function in Astro
Hello, I'm currently working on an Astro project and I'm trying to hide my API key using environment variables or secrets. However, when I attempt to import them into my code after publishing the page, it shows the error message:
I'm using Cloudflare SSR in a hybrid setup.
Here's the code from my function:
If anybody has a solution to this issue, it would really help me out.
10 replies