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

Workers should be fine - got anymore

Workers should be fine - got anymore info?

I've been following along with the

I've been following along with the commits in the workers-sdk repo for the new experimental-assets. Played around with it a bit in a small repo. It is so close to providing the perfect developer experience for building sites on workers. The main feature I would love to see is support for running wrangler dev and having vite live reload the browser whenever I make changes to my HTML, CSS, JS that runs through the worker. You would get the best of both worlds, (quick update in the browser when you modify your code/you are actually running your app via the worker so its more true to how it will work in production). You can get live-reload partially working with workers + assets, but really what I want, and I'm sure many others want is full integration with wrangler dev and vite to do real hot module reloading. It feels like this is possible with the new Environments API in the latest Vite beta but I havent dug in. Is the team that is working on the new experimental assets thinking about any vite integration that would support HMR/live reload with workers? If not, what's the best way to pass along that use-case, open an issue on the workers-sdk repo?...

Given Workers now supports building

Given Workers now supports building within Cloudflare instead of your own CI pipelines, are there plans to support build caches similar to Pages? I haven't had a chance to speedtest it but Workers Builds seems to be much slower than using GitHub Actions and Pages as it's re-downloading every package each build Ref: https://developers.cloudflare.com/pages/configuration/build-caching/#how-build-caching-works...

what is the status for this synchronous

what is the status for this synchronous XHRs?

Sorry for the question, I was searching

Sorry for the question, I was searching for help respect a problem I have with my IP and it seems that Cloudflare is involved, is there a channel where I can get any help with it? or it is mandatory to send an email to the company?

Are you executing that in the global

Are you executing that in the global scope by any chance, rather than in the event handler?

I can't load the new Settings tab for

I can't load the new Settings tab for one of my workers, I just get this every time. Any tips?
No description

I seem to have issues compiling with

I seem to have issues compiling with wrangler dev when i try the typescript 5.2 using keyword await using _lock = await usingSemaphore(this._autoPersistanc......
No description

Thanks @FlikTeoh, totally agree the docs

Thanks @FlikTeoh, totally agree the docs are impressive, I have read the RPC documentation and implemented it across other workers, this scenario is slightly different from documented. Or at least I couldn't work out from the docs how to implement my scenario... I have a worker with the following simplified code: ```import { Hono } from 'hono'...

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?...