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

Cloudflare Secrets Open Beta

Hey! We love using Cloudflare Secrets. I know its in open beta, but is there anything on the roadmap for expanding the 100 secrets limitation?...

Dynamic wildcard routing with Pages?

I want to serve my static website through Cloudflare pages and have 4 wildcard urls routed to my Kubernetes cluster. Currently, my static website is served from a Docker container in my Kubernetes cluster, and Cloudflare proxies to my cluster's ingress IP address. All my DNS is managed in Cloudflare. One approach, I thought, would be to create a new subdomain, backend.apex.tld, and use Cloudflare URL Rewrite rules, to send the 4 wildcard routes to the K8s cluster, and all other traffic routed to Cloudflare pages. However Cloudflare URL Rewrite rules do not allow dynamically routing to a different hostname....

Worker return 1101

Since 29 September my worker start return 1101 error, worker used to upload files to R2 and looks like: ``` if (request.body === null) { return response400(requestContext.request, "Missing request body");...

Getting waitUntil warn in logs, even though I don't have one in the worker.

Getting this warn log: "IoContext timed out due to inactivity, waitUntil tasks were cancelled without completing." But I don't actually have any waitUntils. The worker uses browser rendering, if that has something to do with it

Is it safe to put my env variables during build time?

I have a next application that I am trying to deploy on cloudflare workers. Im confused about whether it is safe to put my env variables like DB_URL during build time...

I have sveltekit app and it use openai api. I deployed on workers.

But when the user reload the page after call api(which call openai api inside) before openai api return result, that api cannot hear result from openai. How could i treat this?

Need Serious Help: Migrating off realm-web (MongoDB App Services EOL) to run with Cloudflare Workers

Hey all I had a Worker that used realm-web to talk to MongoDB (Atlas App Services). With App Services / Device Sync / Data API now deprecated/EOL, my endpoint is effectively dead. I need a supported way to access MongoDB from Cloudflare Workers. Goal: Keep my Worker as the public endpoint, keep MongoDB Atlas as the database, and replace the Realm/Data API path with something that’s actually supported and reliable. ...

Providing external dependencies to Worker Loader modules

Is there a way to pass through external dependencies (from node_modules) to a dynamic Worker's modules? for example: ```js import mod from "@happy-dom/global-registrator";...

Loading a PNG in a worker returning unknown image

I have an image, https://code.superhighfives.workers.dev/social-default.png, that I'm trying to load in a worker to generate an og image. I'm getting the following error "Can't load image, unsupported image type: unknown". The offending line is here: https://github.com/superhighfives/code/blob/aedd457acb7d1987b4f1fe96010f9645f6c60e32/app/routes/resources/og-image.tsx#L94 I'm curious if there's some way to intonate to the worker that it is, indeed, an image. Or if there's some way to say "hey, this content type if png"....
No description

workers outbound trafic filtering for security

Hi all, Did someone had a certification audit and managed to put some way to deny workers outbound trafic filtering based on domain names? i didnt find any feature to really deny trafic at network level, to protect against sensitive data exfiltration from source code corruption, as security best practices needs. even outbound workers of cloudflare for platforms is still fully open to internet outbound. did i miss a feature somewhere? do the certifications audits have some complains about that?...

Error cloning submodules when deploying a git repo to Pages that _had_ submodules before

Hi, I'm trying to migrate from Vercel a bilingual (so 2 deployments) repo; i previously used github actions, that's why I had two other "deployment" repos (since you can't have multiple deployments of the same repo on gh pages) when i tried creating a cloudflare pages deployment, it errored while trying to clone the submodules, that I had deleted. I deleted the .gitmodules file from the repo, deleted the cloudflare projects and recreated them, but it still tries to initialize submodules :/ is it a git clone depth thing, and I just have to push a certain number of commits before trying again? the repo is https://github.com/gwennlbh/portfolio, and I'm basically doing 2 deployments, one with LANG=fr and another with LANG=en (when running the build command, it's a static astro site)...

Workers Paid not being applied

Hey, after running into a bunch of 'Worker exceeded CPU limit' errors, I upgraded to the Workers Paid plan. After the UI already confirmed that I was upgraded (there was a success banner), the dashboard still shows my 100k/day req limit as well as my workers still throwing the cpu issue. When trying to bump my workers cpu config using wrangler, I also get hit with an error saying that I'm still on the free plan. Does anyone have any experience with the upgrade process? Is it expected to take this long?...

I'm trying to deploy a Nuxt 4 project which works, but functions folder is not being served

I have ```// wangler.toml name = "<project>" compatibility_date = "2025-09-29" ...

Getting "Failed to create session: 500" when trying to start containers

Hi! I'm trying to use Cloudflare Containers with the @cloudflare/sandbox SDK but getting a "Failed to create session: 500" error when my Worker tries to start a container. What's working: - wrangler deploy succeeds ✓...

Observability Issues

About an hour ago, all of my CRON-based workers just stopped running. I've noticed intermittent "outages", but this one came after being online for 12 days without issue. Then as soon as I went to run a demo, it stopped processing the CRON job. ...
No description

How’s your experience hosting Nextjs on cloudflare worker?

I’m looking to host Nextjs on cloudflare worker but I’m not sure what things I should be aware of that might not still be compatible. As a small example, can we use axios? Either in frontend code or api route code?

Workers Outbound API Call: Error 525

Hi there! I'm currrently writing a small worker in Rust that needs to issue a call to an API - something trivial (and that works well on my machine). However, when deployed to workers, it seems to result in an "error code: 525" response to the external API Request! These are the request contents themselves: ```...

opennext build fails

By opennext starter project build never succeeds and it infinitely runs the build command in the build runner. Where can I find the definitive instructions for setting up automated github connect builds for OpenNext on workers?

Effect of AI bot blocking on AI overviews/search

I have a client with a small marketing site on Workers w/Static Assets and a custom domain that is now run through Cloudflare. He wants to know if Cloudflare's AI bot detection will prevent or degrade his site's ability to appear in all of the different types of AI overviews and searches that are becoming common online now. Understandably, his priority is to be featured as widely as possible. I've been looking at the Cloudflare documentation and also on Google, but haven't found anyone squarely addressing this....

Can a tail worker log to Observability

I have a tail handler defined within the same code as the fetch handler (so that the tail consumer service is the same worker in wrangler.toml). Should I be able to see tail invocations and any console.logs emitted by the tail handler code in the obervability UI in the dashboard?...
Next