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

Deploy a Browser Rendering Worker with D...

Have you tried using a Durable Object instead of a queue? See: https://developers.cloudflare.com/browser-rendering/get-started/browser-rendering-with-do/ it should allow you to achieve the same outcome but a DO is more suited to a synchronous workflow

Worker limit request

Ah I see the request, you sure you need that much CPU time and not just wall time? Wall time is unlimited Are you hitting CPU time limits today?...

Running into a ts error here...

Running into a ts error here... wondering if you can help ```ts const db = new Kysely<Database>({ dialect: new D1Dialect({ database: env.voting }) ...

does anyone know how long a request to

does anyone know how long a request to increase subrequest limit takes to process? also is it possible to increase the subrequest limit on a free project, if the use case requires it?...

function calling a worker with data

I think I'm missing some basic understanding of how functions and workers can work together. I've binded my worker to my function as mentioned here https://developers.cloudflare.com/pages/functions/bindings/#service-bindings. But the only usage example is:
return context.env.SERVICE.fetch(context.request);
return context.env.SERVICE.fetch(context.request);
...

Link Sanitization

Yes. And no, it's AWS SES that's generating the URLs. I have put a Worker in front of the redirect page though.

This works fine for me in a Worker:

This works fine for me in a Worker: ```ts import { S3Client, GetObjectCommand } from "@aws-sdk/client-s3"; export default { async fetch(_, env) {...

Node.js compatibility Ā· Cloudflare Worke...

Does anyone know off-hand if the net and socks node packages are supported by Workers? I don't see them here, which makes me think not šŸ˜… https://developers.cloudflare.com/workers/runtime-apis/nodejs/...

Hi I have some questions about workers

Hi I have some questions about workers - if I have a backend python process that typically takes 3-4 minutes could that scale well with workers, or would it quickly get to be too expensive? I'm not sure I understand how this would work with the pricing model. It's an image processing thing and I'm not sure I can do much more to optimize it

if you go under your worker, logs ->

if you go under your worker, logs -> real-time logs, you can tail and see the request url

I want to check on whether I am missing

I want to check on whether I am missing something obvious... I have a worker bound to a domain like api.something.com. And then I set up SaaS hostnames for it. In order to do that, I set up a route */* in order to match all of the requests. Unfortunately, that means I cannot also have another SaaS worker at other-api.something.com . (Because the */* route is taken). Is that expected?...

Right, CF For SaaS enables that. You can

Right, CF For SaaS enables that. You can't get apex proxying outside of Enterprise so you need to rely on alias records, but it should just work if you go through the prevalidation and such

has anyone written a worker based

has anyone written a worker based redirect / rewrite / proxy with configuration similar to netlify's _redirects?

uh, hi everyone iā€™m really not

uh, hi everyone iā€™m really not knowledgeable on this stuff but i got the advanced certificate and a bunch of subdomains, but one of my workers, that i deployed with my Debian Raspberrypi with Vue3 and Vite is now pointing all of my subdomains to ā€œfallback domainā€ which stupidly enough, is - by my own admission- my root domain. now iā€™ve changed the fallback but cloudflare hasnā€™t validated the root cert in 48h, while all subdomains are instantly ready. so i guess my question is, if my worker is removed, does it delete all subs? ...
No description

Good day guys.

Good day guys. I wanna ask for advices about how deploy a worker API that I implemented using D1 as storage and a react SPA built using vite, that I used to serve using express.js.
1 - Is it good to deploy the worker as is and in parallel the react SPA in pages? Will this be ok? 2- Will this need cors whitelist or something? 3 -Will be better to serve the SPA using getAssetFromKV from '@Cloudflare/kv-asset-handler'?...

Cloudflare (Workers) Fetch Cache & Redirects Behavior

In Cloudflare (Workers), how does the 'fetch' caching behavoir work when the fetched resource is a redirected to somewhere else? Let's say we have a cache everything and TTL on a specific fetch request, that fetch requests ends up doing a temporary redirect to another URL, will it, the URL that is being redirected to, be fetched from cloudflare's cache if available? A concrete example for our Storyblok scenario: If we don't have a cache version (cv) available and we fetch /v2/cdn/stories/home?key=234234234, Storyblok will redirect this to a link that does have the cache value (cv) query param /v2/cdn/stories/home?cv=2342342234&key=234234234, will the second URL be fetched from the cloudflare cache or not? Preferably in this case, if we get a redirect status code from Storyblok, we don't want to cache that response. But if it redirects to an URL that does have the cache version (cv) included, and we already have that cached, we want to actually retrieve it from the cloudflare cache if available there....

šŸ‘‹šŸ» Hey all. I am a PM on the Workers

šŸ‘‹šŸ» Hey all. I am a PM on the Workers team. I'm doing some exploration into ways that people might want to use container-based workloads alongside Workers. If you are somebody who has wanted to use a container with Workers in some way, or has strong opinions on the topic, I'd love to chat! (Again, this is just an early exploration, so please don't get hopes up around something imminent!) - If you want to chat, feel free to book a time: https://calendar.app.google/qS8Dr4L2L2bWQ6726, or if you do...

Where do you want requests not including

Where do you want requests not including /v1 or /v2 to go? šŸ¤” But for anything path based, Routes are the answer. You can either layer one on top of a Custom Domain, have nothing underneath (dummy aaaa record 100::) or put an origin underneath if you want/need...

Thread for the socket issue

and after 40s in the worker the connection is still CLOSING

I'm looking for an example of a

I'm looking for an example of a successfully built workers-sdk / workerd stack --- I'm fixing a bug in workerd myself and would like to compile it end-to-end. Anybody have any examples / resources?