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

cannot create worker project

I'm trying to create a new workers project from a private GitHub repo. I can choose the repo, and get the "Set up your application" page. But after filling out the Project name, Build command, and Deploy command, pressing "Create and deploy" has no effect. It seems to do nothing at all. I've tried both Arc and Firefox, with no luck.

Workers Builds: How to set a package manager?

In my repository, I'm mainly using Bun as the package manager. However, I need to deploy a subdirectory which is using npm (because of irrelevant reasons). Unfortunately, it still detects bun and tries to install dependencies with bun instead of npm, causing the build to fail. I tried setting BUN_VERSION=0 which failed because it tried to install bun@0. I also tried setting "packageManager": "npm@..." in package.json, but it ignores it. Ended up skipping dependency installation using SKIP_DEPENDENCY_INSTALL=1 and then use npm install && npm run build as build command. This sometimes work, sometimes doesn't......

worker list files

How do I access list array of pictures in r2 bucket? Any good examples?

Migrating an Eleventy (11ty) site from Pages to Workers

I have 2 projects on CF Pages and, from what I've read, Workers has "nearly all" of the functionality of Pages and I've also read that Workers will continue to be developed whereas Pages perhaps not so much. I see that there are several guides for migrating for various frameworks. But I do not see any instructions for migrating Eleventy sites from Pages to Workers. I attempted to use the instructions for Astro, but did not succeed. Does CF have plans to write up instructions for this? Or if anyone has done this and has either written a blog post about it or has instructions that will work, I'm all ears. Thanks for listening....

Issue with wrangler deployment

Am trying to deploy my hono app using GitHub actions wrangler. But any time I create a cloudflare token including selecting the Edit Cloudflare Workers template, am getting an error: โ›…๏ธ wrangler 4.26.1...

Cloudflare does not create Preview URLs for Workers

Why is that? Am I missing something? It seems that for PRs, cloudflare does deploy to production.
No description

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