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

i have a question

How can I convert the static website I made on GitHub into a dynamic one? Currently, it is accessible but cannot synchronize data from all access points

Cloudflare Workers Ratelimiting

I'm finding rate limiting in workers is really strange and it almost never enforces a strict limit in any case. I have it set to 3 request per 10 seconds and my test script gets random results like 🎉 SUCCESS! Rate limiting triggered after 45 requests in 9 seconds! & 🎉 SUCCESS! Rate limiting triggered after 21 requests in 3 seconds! (this was after 2 lots of 60 requests completing without limiting). I should hit the same data center so don't think that's the cause.

Should queue consumer workers be separate from fetch workers?

You can return a worker with fetch or queue or both. If I have my api on fetch and then also have queue stuff is it better to create a sperate worker and use queue there or... 1. It doesn't matter as cloudflare can split fetch and queue automatically 2. It doesn't matter as loading the entire worker for both is no problem...

Help me please

I was trying to get a key for a script and this appeared
No description

Local development secret store

I have a worker definition which uses secrets store. I am trying to test my worker locally, so I figure I should be able to create a secret store locally which I can update the binding to use. However, wrangler secret store create says Local secrets stores are automatically created for you on use. To create a Secrets Store on your account, use the --remote flag., and wrangler secret store list says This command is not supported in local mode. What is the ID of the local secrets store automatically created?...

Cloudflare-workers-and-pages bot reports build failed, Cloudflare dashboard reports build succeeded.

Hi there. I am using Github Actions to build Sphinx documentation and use cloudflare/wrangler-action@v3 to deploy it. This is the workflow command:...
No description

Next.js Build is failing for the npm run build in the /frontend folder

Hey All, I am struggling with the build failure for the frontend project which is under mono project. My code has /frontend and /backend. I have configured the build path as /frontend, but it is failing to find the @lib path.
13:17:24.975 ./app/admin/account/call-logs/page.tsx
13:17:24.975 Module not found: Can't resolve '@/lib/api-utils'
13:17:24.975 ./app/admin/account/call-logs/page.tsx
13:17:24.975 Module not found: Can't resolve '@/lib/api-utils'
I have lib folder under /frontend, but it is still failing. The same is working in my local....

Smart placement queries

I wanted to understand if smart placement can be useful for these situations - 1. the worker is interacting with a single cf service via a binding, such as queue 2. the worker is interacting with a single non-cf service, an external third party API In both cases, there is only one round trip to the backend service. So is it useful to enable smart placement in these situations? Or a minimum of 2 round trips is required to make smart placement really useful?...

detect if request originated from service binding

hi is there a way to determine if a request originated from a service binding? there doesn't seem to be a cf-worker header...

Secrets Store: cannot access via a binding variable.

I have setup my secrets in the Beta Secrets Store and the bindings are good, when I attempt to retrieve them I get an odd experience. I am calling it with typescript as the example suggests: ```typescript export default { async fetch(request, env) { ...

Is a way to access remote binding in local developpement on a next js worker

Hey im wondering if there is a way to access remote binding in local developpement on a next js worker fullstack app, im currently using get cloudflare context to access my env variables, but the issue is that when i use next dev all my cloudflare binding are not the one from remote 😩

Protecting a Workers Static Assets site with Cloudflare Access

I'm migrating my Pages Functions site to Workers. My existing site is protected by Cloudflare Access, as per these instructions: https://developers.cloudflare.com/pages/platform/known-issues/#enable-access-on-your-pagesdev-domain ...

Worker build is failing (Preview Build)

Hi, I am unsure why this is failing, but there might be an incident or issue?
2025-07-29T15:02:47.319Z Initializing build environment......
No description

Workers build queued with no other builds going on

I noticed my build is in queued status (which it never has been before), but I don't have any other builds going on. Why would it be queued? I also canceled and tried to rebuild it (it's auto triggered with code changes to github) but it still says queued. Any ideas why this would be happening?
No description

Worker Service Binding not working

Hello, we are trying to call a function of workerB like in the service binding demo article but get an error on Worker A:
ERROR: env.WORKER_B.myFunction is not a function.
ERROR: env.WORKER_B.myFunction is not a function.
The service binding is
{binding="WORKER_B", service = "worker-b-stage"}
{binding="WORKER_B", service = "worker-b-stage"}
and the worker b has: ```export default class extends WorkerEntry point { async fetch(..){..} ...

RangeError on workers

I am having this error only when deployed to cloud flare and I don’t encounter this locally. I am not returning any status codes response outside of the range 2xx to 5xx Error:...

Non-production branch deploy command

I'm starting to use workers as I'm adding workflow support to an application I'm serving with pages. I'm working on getting prod and no-prod environment alignment and I'm seeing some oddities when i'm deploying the worker for a PR. it seems to be running the "Non-production branch deploy command" which I have set to a pnpm script that runs this wrangler deploy --config workers/sync/wrangler.jsonc -e preview workers/sync/index.ts and passes the "-e preview" to send this to the preview environ...

Websocket Hibernation DO + Vite local dev

Hi all, im facing an issue and it’s making me pull my hair out I’m currently writing a Vite app (React Router 7) , using cloudflare’s official vite adapter. I’m enabling users to see who is connected to a given page (much like the tutorial on the cf docs itself) ...

Workers throwing 404 when live

I'm working on a Micro-services architecture but with CF workers and when the gateway forwards the API calls to other workers i get the error on the picture. This error only occurs when live
No description