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

How to rate limit per hour?

I'm expecting bursty behavior so a per-user limit of 25 requests/hr seems ideal

Worker Schedule via Dashboard BUG?

I've noticed when editing a worker with a scheduler via the Dashboard the edits aren't applied to the worker even when Deployed, you need to reload the whole dashboard in order for it to become enabled. Versus for HTTP Requests where you have the SEND/Reload button to load new edits to the Worker..

Browser Rendering always send too many instances

Browser Rendering always send too many instances But no logs after Oct 31st...
No description

React + Vite SPA

I have a simple React SPA with Vite. Wondering if I should use Pages or it's recommended to use workers for this as well? Couldn't find any examples in your docs (only for Remix, Next.js etc. not just a plain React SPA)

Reverse Proxy how to fix caching?(idk if it's caching issue)

So I have created a reverse proxy that get data from other page. On my other page there are also some scripts that get data. so one I load that page initially I get that page withour any data....

feeling like chicken and egg and platipus.

Cloudflare worker API to deepgram.com TTS or any TTS API examples that work with CF Worker.
No description

I cannot get my worker working

I am following this tutorial and have edited the files, but cannot get them to the cloudflare worker, none of the terminal commands are working.

How to develop with both Browser Rendering and Queues?

I'm working on an app that is using both Browser Rendering and Queues to manage requests to the browser rendering workers, but I can't run the browser rendering workers locally, and if I try to use remote dev it fails to boot if I have any queues defined in wrangler.toml https://developers.cloudflare.com/workers/testing/local-development/#supported-resource-bindings-in-different-environments Right now I've removed the queue and run the browser worker directly, but this will not work well in prod. Is there a solution to this?...

routes or subdomain?

Hi guys, i have a quick question, if i want to implement worker for my domain abc.com, on setting worker whats you think the best practice, set a route or a subdomain? I want my worker listen the path where the user go do a process and return a tag wich will sent as variable a third party too with zaraz. #workers-help

What in NextJs project is charged on workers?

Hello, I'm about to start a Nextjs project and I want to host it on Cloudflare, but I need to know what in the NextJs app is charged by workers ? The rendered page is charged as one request or the fetch functions is charged as one request?

CORS headers for static assets of a worker in dev

For a worker request one could handle OPTIONS and return the headers you want but the static assets are supposed to get matched directly. How do I add CORS to them during local dev? Proxying them via worker just for dev, seems counterintuitive and wrong to me. In prod, I am on same domain so I don't need anything extra. What's the way around this?

Static Assets: How to deploy a SPA?

Currently I'm using remix with spa mode and deploying it to cf workers, I also have Hono as main entrypoint for my bucket, problem is when i go to the root (/) I do get served the index.html file and if I navigate using the <Link> component everything goes well, but if i refresh in a path other than / I get 404. Should rewrite the requests with Hono? Is there a similar thing as behaviour in cloudfront where you can specify a certain path always serve a static file?

Dynamic step names in workflow

Hi, in the docs it says not to dynamically create step names since they can be lost when the workflow hibernates. For a potential use case i have an action that needs to be repeated on a schedule. I can define that schedule as an array of wait times then iterate over that array and call the step to do the action then call a step.sleep with the value from the array. Would that also trip up the hibernation since i would be dynamically calling the sleep like so: `step.sleep(``sleeping for ${waitTim...

Image transformation suddently all 403

I am using image translations inside of a worker, this was working for probably a year or so with various unrelated problems due to where images were fetched from (in this case IPFS gateways.) Today all of a sudden I can no longer retrieve images and get a 403 for each request. I can see the images if I turn off image transformations so the 403 is caused by the image transformation. I am not sure how to debug or get help for this. We have a paid plan and the quota looks ok, but the management UI...

cache worker request not working?

I deployed worker with github integration, attached to subdomain pointed to 192.168.0.2 then added cache rule to set Edge TTL for 3 hours and Browser TTL 30 minutes then I'm executing few times every minute or two - curl requests and 1) I don't see any cache headers 2) each execution takes 9 seconds cache rules do not apply to workers? on the other hand "Tracy" functionality for given url shows cache rules should be applied...

database connection doesn't work in / behave strangely in global context.

this doesn't work ```ts const db = new Kysely<DB>({ dialect: new PostgresDialect({ pool: new Pool({ connectionString }) }),...

github integration and passing git sha to worker

I wonder how to pass git sha to worker - so I can use in sentry and other monitoring places. Any hints? 🙂

getSetCookie is not a function

I've upgraded a Workers project by bumping Hono and Wrangler by a few minor versions. In staging, I'm now seeing:  "TypeError: this[#res].headers.getSetCookie is not a function"  in my streaming logs. This didn't exist before....

Consent Application hangs after clicking "apply"

I've installed the Cloudflare cli and created a hello world worker through npm create cloudflare. I chose to just immediately deploy the worker and it automagically navigated to a consent screen on my browser. When I click "apply", the process seems to stall. I can verify that I'm off VPN. Any ideas why this is not working?

How do I get the list of deployed workers like on the web UI?

With Wrangler, how do I get the list of deployed workers like on the web UI?