Cloudflare Developers

CD

Cloudflare Developers

Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news

Join

Monorepo - Wrangler Action - Dynamic Secrets

Hey there, I'm currently trying to get a dynamic deployment working via turborepo and the wrangler action without too much of repetition. I'm struggling with dynamically parsing the secrets parameter to the wrangler action. Does one have an idea on how to construct the required yaml list conditionally or from an github env variable / secret dynamically? Otherwise I'd need to basically copy 3 steps for each app in the monorepo :/...

Go binary missing/not found in Worker Builds Image

Just trying to do a build for my Worker's project and it's failing as the "go" binary isn't found (I'm building some static assets using Hugo, so Go is needed for module support in Hugo). Based on the docs Go v1.23.0 should be included in the build image...so not sure what's up....

API and limits for email routing?

Is there an API to create email routes for workers? If so are there limits to how many routes can be created (e.g., is it appropriate to create a route for each user of a particular application services? i.e., many thousands?) If not, is there another way to achieve this with the CF platform? Thanks.

Is there any way to have getPlatformProxy access remote data?

I want to use getPlatformProxy create a remote proxy so it uses actual data from my cf account instead of just mimmicking locally. Is it possible to do this?

I want to attach tag for workers and filter by tag.

I don't think it's very good, but it manages PRD, STG, DEMO and other environments in one workers' screen. I would like to be able to tag and filter the microservices since the amount of microservices is growing there. Also, I know that AWS should have separate consoles for each environment, but I wonder if people are doing this with Cloudflare Workers?...

Cloudflare workers llama 3.2 error

I cant able to use llama 3.2 in cloudflare workers Model is giving error How to solve this...

Dashboard is broken, can't get to D1

Hi, I can only seem to access the 'Overview' page of the 'Workers & Pages' dropdown on the side menu. https://gyazo.com/4d22b512604322c2f16b8873c40c63b7 Why can't I access anything?...

I am running into problems connecting to workers and pages

It seems adding a custom domain to some of my pages and worker projects are now adding AAAA records into the IPv4 DNS records causing major problems for end users. Most ISPs do not yet support IPv6 but if they reach out to the IPv4 DNS they will now see CNAME and AAAA records and will attempt and fail to connect to our websites. Many users have to turn off WiFi on their devices to make this work. Unfortunately IPv6 cannot be turned off or controlled within cloudflare. How do I fix this? Examples...

basic auth

can someone help me ? please check the image as an example thanks in advance...
No description

Keen to understand the routing of a request invoked by a worker

I am fairly new to CloudFlare and interested in understanding the flow of my requests when workers are involved. My current understanding is as follows: * I have a proxied DNS record (CNAME) for a route in my domain...

Workers returning cache hit for 500 response without cache headers

I have a remix application deployed to cloudflare pages. We recently had a scenario where some unexpected load was generated against our API which caused an outage. The specifics of this are still being investigated, but as this happened we found that the remix application took longer to recover than the API itself. From what we can see the 500 response from the worker as a result of the api outage had been cached and as such the cached response continued to be returned after the API recovered. I have attached a screenshot of the response. We cannot see any specific details of the response that would indicate that it should be cached like a cache-control or expires header. We currently have a very rudimentary implementation of the cache api within our worker function which we suspect needs to be updated to avoid this. However I have been unable to find any documentation explaining the condition which is causing it to be cached making it difficult to know what changes exactly are required. Ideally we would just like our cache implementation to match the behaviour of cloudflare when not using workers. I'm not sure how practical that is though. I have attached our worker entry point for reference as well....
No description

Disable ur proxy from my domain #help

there is an issue with my domain, vordes.shop, which seems to have your proxy enabled, but i don't have a Cloudflare account or don't recall setting this up. From there, I just made a account today do contact support but only paid people can contact support so I’m emailing It's possible that the domain was previously owned by someone who had it registered under their Cloudflare account now I’m the owner of the account please disable your proxy I have proof of owner ship but I don’t want to send it here in public channel message me...

Worker CLI deployment error

Hi, I was wondering if someone could assist me? I'm getting this error when deploying from the CLI. binding DB of type d1 failed to generate. Please try again later or contact support. [code: 10021]...

Wildcard DNS + Worker + R2 custom domain

Hi, I have a wildcard DNS set AAAA * 100:: and a worker with route *domain.com/*; my worker handles all requests to domain.com and any subdomain user1.domain.com. I've enabled a custom domain for an R2 bucket at assets.domain.com; the Cloudflare dashboard said "You currently have a wildcard record for *.domain.com. While the record will remain, requests to assets.domain.com will now be served from your R2 bucket.". The entry for R2 indeed appeared on the DNS configuration page. However, requests to assets.domain.com are still directed to the worker. How can I resolve this? I need the worker to continue handling all subdomain requests except for assets. Thanks....
No description

Workers with route configured are not being triggered

I need to do some host rewriting along header updates and was trying to use workers for that. I've configured it to *domain.com/* and enabled 100% of the logs. But so far I've only seem logs when my requests are made directly to the worker, not on domain.com. ...

How do you execute D1 migration with Worker Build?

Is it possible to perform migration to d1 by CI/CD with workers build? Currently, I have set up a deploy command that executes bunx wrangler d1 execute migration apply and bunx wrangler deploy in sequence. How do you guys do it?

Preview deployments for workers with Durable Objects

We're very interested in using the new Preview Deployments feature for our workers in Cloudflare, but after spending some time trying to figure out how to enable them, it seems the feature isn't available if the worker uses a Durable Object? Is this on the roadmap or is there a fundamental constraint here? Is there a way around this?

Workers duration limit confusion

Use event.waitUntil() to delay cancellation for another 30 seconds or until the promise passed to waitUntil() completes.
The docs on Duration Limit (https://developers.cloudflare.com/workers/platform/limits/#duration) says that using waitUntil() delays Worker expiration untils 30 secs *or * the promise completes. The "or" is confusing me. Does that mean it'll continue for the longer of the two (and potentially indefinitely while awaiting the Promise)?...

Resizing a private image in an R2 bucket through a worker

```ts export default { async fetch(request, env): Promise<Response> { const url = new URL(request.url); const key = url.pathname.slice(1);...