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

In the new CF Workers - how do I enable

In the new CF Workers - how do I enable preview within the same Worker? Is it as simple as setting "preview_urls": true, in my wrangler.jsonc? Ok if that's that easy then how do I set up environment variables specific to each env: preview and ... prod?...

Research on local resource inspection

👋 Hey folks, we're doing a little discovery on local debugging with local resources/bindings when building with wrangler, and looking for some feedback. If you've previously posted feedback on this kind of idea please link it to me in the thread I am sorry I haven't been here that long! Do you ever have challenges with this? What do you typically do to check the state of your locally emulated CF resources when developing/seeding/resetting around stateful stuff. This would be using tools like D1, R2, DOs or KV, and having a local version of your application without using remote: true. Recently we came across this VS Code extension that allows you to view KV data locally. Has anyone tried this or tools that do similar jobs for D1 or other resources, I can think of a couple! (Here's the extension https://marketplace.windsurf.com/vscode/item?itemName=swalkerdev.cloudflare-kv-explorer)...

When using RPC method invocation between

When using RPC method invocation between workers/durable objects, do I need to build some security layer around this myself, or does the CF architecture give me some guarantees? For ex, in a normal multi-service architecture, it's quite common to have service-to-service calls be authenitcated, where each service has some kind of token/cert/etc... It's not quite clear if I need to do the same when doing worker-to-worker / worker-to-durableobject RPC calls. (not fetch)....

What is powering rate limiting under the hood?

What is powering rate limiting under the hood?

why is it impossible to change the "PR

why is it impossible to change the "PR Preview Command" under "Branch Control" for Workers CI?

Can you share a repo? Wrangler should be

Can you share a repo? Wrangler should be able to account for both .env(Secrets) and vars(Env Vars)

hi, i still havent setup a thread,

hi, i still havent setup a thread, should i?

👋 We're migrating our Next.js app from

👋 We're migrating our Next.js app from Pages to Workers through OpenNext, and we're trying to set up preview URLs / non-production brunch deploys. In Pages, there's an option to set different variables for production and non-production deploys, but I don't see such an option in Workers. As far as I understand, we can have two environments in Wrangler, but that only allows us to set per-env runtime variables, not build variables. Has anyone figured out how to set it up?...

Cloudflare Workers Issues

You can follow this statuspage, which is probably about the same issues you're experiencing: https://www.cloudflarestatus.com/incidents/wvkqmzqz8f08

persistent URL to access the latest non-production build

when i push to my main branch, my worker runs the production build, and mywebsite.com starts serving the latest commit how can i access my latest development preview link (which is only generated when a dev pushes a commit to a PR, e.g., https://COMMIT-HASH.WORKER-NAME.CLOUDFLARE-USERNAME.workers.dev)...

Pages to Workers

probabaly, but there isnt a guide on how to move an entire app in to a worker, and then is it server side rendered in this case? it should still be client side.

do cf workers/pages expose advance ip

do cf workers/pages expose advance ip geolocation fields like city, country, region, automatically on incoming requests on free/pro plan?

CF - Pages timeout - what's your case #?

@gabrielstuff what's your case #?

Billing for using websockets in Worker

Hey all, the docs mention that Workers are only charged for requests and CPU time consumed, but there’s no mention of wall-time. For WebSockets (without Durable Objects), does that mean billing is just for the upgrade + cpu time used, and not for the entire duration of the connection?

TL;DR just switched to cloudflare pages

TL;DR just switched to cloudflare pages (legacy)

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)...
Next