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

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

Yeah, need to explain what's wrong + how

Yeah, need to explain what's wrong + how to fix it in the error log, otherwise it's spam in the channel (like me rn)

It's the fact that types are no longer

It's the fact that types are no longer found in the rest of the codebase if extending from Cloudflare.Env AND if there is a durable object in there that imports (e.g. ORGANISATION_PERFORMANCE_REPORT: DurableObjectNamespace<import("./workers/app").organisationPerformanceReportDO>;). You're unable to jump to the typedef, and typescript/IDE throws up errors as they cannot be resolved. Its not possible to cmd + click into the type any longer. I'm using Typescript v5.7.3...
No description

that wasn't it... it turns out that the

that wasn't it... it turns out that the cloudflare vite plugin creates a new flattened wrangler.json, and you have to specify CLOUDFLARE_ENV during the vite build in order for it to build the right one

Worker Assets 500

I'm working on a local worker project and have a static assets directory. everything seems fine when actually deployed but when i run wrangler locally it can't find the assets. i was getting a 500, so i tried adding an explicit handler with env.ASSETS which changed to a 404. I tried adding the --local flag and double checked the file permissions were accessible. not sure what else to try

i'm trying to `wrangler d1 migrations

i'm trying to wrangler d1 migrations list letsapply-db --remote and wrangler is just dying with an exit code of "1" (no text). any suggestions on how to debug?

wrangler feature request: i keep pushing

wrangler feature request: i keep pushing deploys without first pushing the secrets needed. it'd be nice if we could specify in wrangler.toml that a secret is expected, and throw an error a) at dev time if it's not specified in .dev.vars and b) at deploy time if the secret doesn't exist in the live environment

Does anyone know how to upload metadata

Does anyone know how to upload metadata with wrangler kv bulk put? I tried following the docs, passing the following JSON: `[ { "key": "key1", "value": "value1",...

Nah I pass

Nah I pass The action doesn’t support multiple folders afaik especially when running different commands ex for pages and workers there are two separate commands 2. I deploy 6 sites and the action is limited to 5 based on the docs 3. All I want is to make the stupid CLI work because it ain’t reading the env variable that is clearly present It worked with a year ago but now that repo is broken too someone changed something…...

does CF_PAGES_COMMIT_SHA and CF_PAGES_

does CF_PAGES_COMMIT_SHA and CF_PAGES_BRANCH are missing from workers ? (i'm using the new git integration)

How to solve this issue, when using a

How to solve this issue, when using a custom port with HTTPS known issue with fetch() requests to custom HTTPS ports in published Workers: the custom port will be ignored when the Worker is published using the "wrangler deploy" command....

I don't think it was the blog one, but

I don't think it was the blog one, but the other one that they recommend with some starter files. I didn't change anything

[Feature?]: Wrangler/Miniflare dev serve...

Yeah guess that is why I missed this. Looks like there is manual workaround https://github.com/solidjs/solid-start/issues/1394
Next