ddsgadget
ddsgadget
CDCloudflare Developers
Created by ddsgadget on 7/9/2024 in #pages-help
Someone trying to access a .env file in a functions directory?
We noticed in the last few days alot of attempts to access .env in our functions directory on Cloudflare pages. So for example, we see GET and POST requests to /.env. Of course these are rejected and we don't have a .env file anyway (Secrets are saved in dashboard as secrets and some vars in a TOML file), but this got me concerned about the security of functions and environment variables in general on Cloudflare. My questions are: is the wrangler.toml file accessible anywhere on a website publicly? Are they in the build output at all? How can we inspect our actual build files to see what's in them? I don't see anyway to download the outputted files in the Pages admin. What else is a potential security leak on a cloudflare pages functions directory?
1 replies
CDCloudflare Developers
Created by ddsgadget on 5/22/2024 in #general-help
Build Cache for Pages
Can you please add support for Docusaurus for build cache on cloudflare pages? https://developers.cloudflare.com/pages/configuration/build-caching/ - Docusaurus is not on the list of frameworks supported, but it's quite important to build from cache when you reach a certain number of documents. thanks.
1 replies
CDCloudflare Developers
Created by ddsgadget on 3/23/2024 in #general-help
Can't use @cloudflare/ai in local development.
I am already connected to cloudflare in my local environement and I can run a deploy to Cloudflare. The AI worker works fine in production on Cloudflare, but when I run wrangler dev locally, i get the following error: {"success":false,"errors":[{"code":10000,"message":"Authentication error"}]} - if I'm authenticated to deploy to Cloudflare locally, why isn't the AI authenticted to work locally? how do you set this up properly? #cloudflare-ai
3 replies