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

how to upper timeout workers, default

how to upper timeout workers, default 30s

Bun Deploy Bug

try deploying apps/api (env is included)

Hey folks, as of late I'm getting a lot

Hey folks, as of late I'm getting a lot of workers-ci that succeed on the deploy command, but error after causing the CI run to fail but still deploy. (So on a PR, deploy of a preview env is correct, but CI run fails so we cannot merge) This forces us to re-run a bunch of builds that we know already pass, but just need to mark things as successful. (Latest run with this is: e0701398-a355-4b31-a80b-8bce36e8c13b)...

Is it possible to restrict the

Is it possible to restrict the geolocations that a worker can be placed in?

I have a problem, in my office I have a

I have a problem, in my office I have a manual DNS server for the corporate internal VPN, I have a domain but when implementing Cloudflare Workers it does not work, since I can not configure a DNS record to a specific ip, should I configure a DNS record type CNAME with the name.user.workers.dev (url of the worker)?

Thanks @Walshy - after i deploy the

Thanks @Walshy - after i deploy the worker, how would i trigger it for all vanity domains honstnames only? The image p asted shows the Routes but im unsure what to put there ,so that it doesn't trigger on every request, but rather only vanity domains (i.e. where hostname !== 'my-domain.com' OR as your script above shows I need to run it on every single request? and do that check in the worker? (Seems like a extra hop now my domain needs to take) Also if i enter *, it will trigger on all static asset requests as well (which is not necessary) --...
No description

Environment Variables & Secrets

hey, I think i lost confidence on workers environment variables. First, I got played because I put a text environment variable in the dashboard and not on my wrangler.jsonc Then for some reason, the environement variable just disapeared (or was it the value, I can't remember) Then, on my production app, all of the sudden, all client got 403 from my API. It turned out the value of a secret got cleared/emptied without any action on my side. ...

can you refresh and see if it happens

can you refresh and see if it happens now?

IIRC it isn’t running commands for

IIRC it isn’t running commands for regular builds, it is calling the esbuild JS API

Usage-based Notifications

this would be soo amazing to have on cloudflare.
No description

EMFILE: too many open files

Please help with EMFILE: too many open files, open '/opt/buildhome/repo/node_modules/astro/dist/cli/throw-and-exit.js' I just spent a whole day trying to debug a weird issue with CI deploys. I have a minimal astro project with 8 pages (total) and a worker.ts file. My worker sends requests from /dashboard to my oracle server, everything else goes to astro static files. Information about my project...

is their documentation for this in the

is their documentation for this in the Workers migration from Pages?

Change Repo for CI

Why is there no option to change the repo the pages is connected to? It would be good if there was an option to change the repo the pages is connected to, instead of having to delete it and create a new one...

The `cloudflare:` prefix is used because

The cloudflare: prefix is used because, just like node, these are classes provided by the runtime itself.

Can static site content and api backend

Can static site content and api backend stuff (src/index.js) be deployed in the same worker? the AI overlords seem to think it can (https://www.perplexity.ai/search/219e4192-3a0b-41c0-b0b2-8cb4bceb1af6) but I can't seem to get it working... has anyone done this successfully?

👋 I've got a simple list of schedules

👋 I've got a simple list of schedules like this in worker: ``` "triggers": { "crons": ["* * * * ", "/2 * * * *"]...

`--metafile` flag released in wrangler!

Thrilled that my first PR for Cloudflare's wrangler just landed in v4.15.0! 🎉 This PR adds a new --metafile flag to the wrangler CLI. This outputs esbuild's metafile, which can then be used to easily analyze your Cloudflare Worker's bundle size! Update wrangler to v6.15.0 or newer, then simply run: npx wrangler deploy --dry-run --metafile=./meta.json && npx banal -M ./meta.json (or add to your package.json file as analyze). This command uses banal – it's a great tool by fabiospampinato that provides an offline version of esbuild's web analyzer. Makes peeking into your bundle super easy!...
No description

That's the new typegen stuff with

That's the new typegen stuff with wrangler types. I'm personally not a big fan of it, but it's where things seem to be moving. I believe it causes more problems than what it sets out to solve - such as no nodejs_compat, interop with libraries that do need to import from workers-types and now ending up with duplicate types, etc. so in all of my projects I'm still using workers-types and defining my Env manually.

RPC method types debugging

yeah nvm actually false alarm

will cloudflare move away from bindings

will cloudflare move away from bindings now that VPC and VPC PrivateLink exist?
Next