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

override_existing_dns_record

@Vero @SuperHelpflare We deployed our frontend to workers assets, but we have A record for our domain and when we trying to configure Custom domain it showing error:(
already has externally managed DNS records (A, CNAME, etc). Either delete them, try a different hostname, or use the option 'override_existing_dns_record' to override.
i tried to find any information regarding override_existing_dns_record but didn't find any documentation regarding that https://developers.cloudflare.com/search/?query=override_existing_dns_record...

How to redefine types generated by `wrangler types`

Running wrangler dev generates ```ts declare namespace Cloudflare { interface Env {...

Queue "send" method hangs, binding is set it up and queue is exist.

Hey there. For some reason even though binding config is set for the queue, env.QUEUE.send(message); hangs in worker. but sending manual message over dashboard to queue just works fine. what may be the issue? In local everything is fine, in production, when pushing manual message through dashboard to the queue everything also just works fine, and queueHandler picks the message as it should be, but when it comes to sending message from worker to queue with send() method it hangs forever. binding is surely in the settings and I call exactly how the binding is set it up via env, so it is env.EMAIL_QUEUE.send() in my case....

How to use vercel/og to generate open graph images?

I see the plugin @cloudflare/pages-plugin-vercel-og for pages project but didn't found the example to genrate image using workers. When I install this package on a worker project, it throw any wasm error. Any suggestion how to generate og images on workers?...
No description

Attached Debugger to Worker Process?

Is it possible to attached a debugger to a vitest test suite? Using single fork and disabling file parallelism yields
TypeError: Customizing inspector host is not supported with vitest-pool-workers....

Update name in Wrangler configuration file to match deployed Worker #1

when I deploy a wrangler without name=ā€œxā€, it generates a pull request, however I don't want to put a name as the repo is used for multiple workers and it generates several pull requests per hour. (You have a pull request pending to accept. Please accept the changes before your next deployment to avoid compilation failures), how can I remove this behavior.

How to stream responses and return a known content length?

I'm using workers as a thin proxy with a little bit of logic between object storage (s3 in this case, but in the future likely r2) and clients. I'm wondering how to support sending data back with a content length header but without buffering the full object in memory? When I return a response with a stream, workers transforms the response to Transfer-Encoding: chunked and removes the Content-Length header to conform to the http spec. There's a great http client (object_store) I'd like to support with this proxy, but it requires content length headers. When i asked there about transfer encoding chunked support they said nope (https://github.com/apache/arrow-rs-object-store/issues/340#issuecomment-2849485808). Any suggestions?...

Email Routing - Forwarding to multiple recipients

Hello, We are attempting to forward emails to multiple verified recipients. Such as: ```export default { async email(message, env, ctx) { const recipients = ["a@example.com", "b@example.com", "c@example.com"]; ...

Request for serverless container support similar to Cloud Run on Cloudflare

We would like to request a feature similar to Google Cloud Run on Cloudflare — the ability to deploy and run containerized applications in a fully managed, serverless environment. While Workers and Pages are excellent for lightweight and edge use cases, they do not currently provide the flexibility required for containerized workloads that need full runtime environments, background processes, or custom networking. Adding serverless container support would make Cloudflare a more complete platform for modern application deployment, especially for teams looking to consolidate infrastructure while benefiting from Cloudflare's global network, performance, and security. Please consider adding support for deploying OCI-compliant containers with automatic scaling, HTTP-based activation, and per-request billing similar to Cloud Run....

Pages + Workers + R2

Hey, I have a little problem. So I created a website in NextJS for displaying pictures. The website is hosted through CloudFlare Pages....

Cloudflare Workers Failed to run --remote preview

Hai My sveltekit api runs noramlly when i run
npx wrangle dev
npx wrangle dev
But shows something like this
"Error: internal error; reference = 4lrskvh59d8cvjp6e5550i74a
at async Object.fetch (file:///D:/example/sss/ssss/node_modules/miniflare/dist/src/workers/core/entry.worker.js:4321:22)"
"Error: internal error; reference = 4lrskvh59d8cvjp6e5550i74a
at async Object.fetch (file:///D:/example/sss/ssss/node_modules/miniflare/dist/src/workers/core/entry.worker.js:4321:22)"
...

Custom hostname

Hey, we're launching a white-label enabled app and urgently need Custom Hostnames enabled for client domain mapping. Our clients are setting up CNAMEs now, so speed is key. Does any know where i can enable it. PS- i am already on enterprise plan...

Subrequest through service binding sent twice?

i am using RR7 for SSR and trying to fetch the same worker that runs RR7. I have set it up so that all requests go through hono first and if they fall through get handled by the rr7 handler. I made sure the loader only runs once, but the logs seem to indicate that two requests are sent? I added a random UUID to the request and its the same UUID on both requests, but the request ID is different. ```ts...

Help with HTML Rewriter

Hi, I am trying to use HTML Rewriter to add meta tags to my website, but I don't know how to add it to my pages setup. I tried including it in /functions/[...path].js and /functions/[[path]].js but that didn't work....

How to correctly type the batch?

```ts async queue(batch: MessageBatch<{ bucket: string }>, env): Promise<void> { // A queue consumer can make requests to other endpoints on the Internet, // write to R2 object storage, query a D1 Database, and much more. for (let message of batch.messages) {...

Image Transformation doesn't work directly on R2 presigned links

This is my Worker's code: https://github.com/tobycm/filebox/blob/main/thumbnail-worker/src/index.ts When the request succeeded, the end user accessing the workers with the valid url will get serve an image, preferably transformed to serve as a thumbnail. However, I can only receive the full file pre-transformed. Please let me know if you need more info!...

Browser time limit exceeded for today error

Hello everyone, I’m working on a scraper that uses the Browser Rendering API to: 1. Log in and access a web page 2. Navigate to a specific URL 3. Click buttons that generate a download...

✘ [ERROR] The entry-point file at ".open-next/worker.js" was not found.

Hello I'm following this guide: https://opennext.js.org/cloudflare/get-started I have linked cloudflare to my github project and set build time env vars....

Why is CF inconsistent in certificates for *.*.domain.com?

This hostname is not covered by a certificate. To ensure full coverage, purchase Advanced Certificate Manager to use Total TLS for full certificate coverage of proxied hostnames.
I get this warning on my r2 bucket but I don't get the same on my worker? why is this? what is this?...

Queue consumers - when/when not wrap the code in `waitUntil()`?

Could someone please clarify when it is and isn't necessary/a good idea to use waitUntil() inside a queue consumer? The docs suggest using it, however queue consumers already run asynchronously, in the background (not as the result of a HTTP trigger), so unless the consumer is doing a LOT of work, and is therefore at risk of exceeding Worker limits, what's the point? My consumer receives a bunch of messages and sends an email (via an API) for each one. Traffic to this queue is low, and the settings are quite conservative: ``` "max_batch_size": 10,...