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

I have changed a few images and replaced

I have changed a few images and replaced them with new ones. Despite npm run dev showing these changes, it seems for some reason npx wrangler dev is still showing the old files, this is despite the fact that I deleted them. Why is this, and how can I make it show the new images?

Developing with multiple Workers

love the multi worker setup we have now https://developers.cloudflare.com/workers/development-testing/multi-workers/ but will this ever work between vite+wrangler? or can we make this work? wrangler dev -c ./app/wrangler.jsonc -c ./api/wrangler.jsonc) does not support cross-process bindings at the moment. so we can at least run 1 vite and 1 wrangler with mutiple configs...

The remote binding does not seem to be

The remote binding does not seem to be working

hello :wave~1: is the `--yes` bugged

hello :wave: is the --yes bugged with wrangler rollback ? It doesn't automatically accepts default, I have to manually enter....

One I forgot to raise yesterday during

One I forgot to raise yesterday during office hours @petebd, but are the daily workers-types releases even without any changes intentional?

Is there are any way to inject template

Is there are any way to inject template variables or env vars to wrangler.jsonc?

why does wrangler tend to not print

why does wrangler tend to not print actual errors? like you need to catch and console.log for the trace and the text to be anything useful

I have some feedback for Pages to

I have some feedback for Pages to Workers migration. If you're serving static assets without going through a worker first, you should remove the [assets]binding="" from wrangler.toml. It would be nice to see this in the migration guide, I would think more often than not, a Pages project will be migrated to a static worker + multiple workers, or by just compiling Page Functions into one worker. name = 'sh8r-static' [assets] directory = "dist"...
No description

Any news or progress you can share on

Any news or progress you can share on the typegen with wrangler types becoming more cohesive with @types/node? All the time the typegen doesn't actually match runtime behaviour here and include real nodejs_compat types, it just causes more problems in my experience, especially when you introduce third party libs that still have to use workers-types.

Is there a good way to debug RPC on

Is there a good way to debug RPC on localhost? i only see connected, or not connected. no support in debugging or where the issue can be. funny enough: same code works on our remote environment - but not localhost.

Hey 👋 I've been trying to profile my

Hey 👋 I've been trying to profile my worker locally using the chrome perf tooling but the data coming back seems wildly incorrect (assuming because workers doesn't allow for accurate timings). Is there anything I can do locally to make these profiles more accurate? e.g - Since the clock seems to update on IO i was considering doing a fetch request to a worker every 10ms to roughly update the clock but the outbound limit is too low....

When deploying versions for an

When deploying versions for an individual PR, is there a way to supply it's own env var for runtime. I am using GH Actions for deploy. Where BuildTime env Vars can be controlled but run time where I would like to specify for each version.

When I deploy a project on Cloudflare

When I deploy a project on Cloudflare Pages that includes Git submodules, does Cloudflare Pages automatically fetch and update those submodules to their latest commits during deployment?

Any ideas why the deploy command would

Any ideas why the deploy command would work in the terminal, but fails if aliased as a package.json script? Works: wrangler pages deploy directly in the terminal. ...

Ah, got it. That sounds kind of painful

Ah, got it. That sounds kind of painful too. Any future plans for something similar to secrets store that can be used for sharing bindings across workers?

Hi all 👋

Hi all 👋
I get Authentication error [code: 10000] while trying to list page projects. Logging out and logging back in doesn't help. Wrangler is at the latest version 4.11.0. The account ID in the failed URL doesn't match the account ID in whoami. Is there some kind of cached account details I need to clear? Thanks in advance for any advice to get this sorted!...

Do you already have a Record (CNAME or A

Do you already have a Record (CNAME or A... whatever) for www subdomain pointing somewhere else? If so it wont let Wrangler override that and automagically create one. Also I havent checked but I am not sure that override_existing_dns_record exists on Wrangler config (could be wrong) it might be referring to the API

i reran npx wrangler types to generate a

i reran npx wrangler types to generate a new worker-configuration.d.ts, and instead of doing this: interface Env { ... } ...

not sure where to pos tthis but please

not sure where to post this but please... 1. can we please allow upload .env directly for build variables ? it is annoying we have to upload one by one thorugh the ui ( regular env var seems like support pasting dotenv) - when using sveltekit we have to provide them for build .. and i think in pages, all env variables are also used as build variables ...