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

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

Hello!

Hello! Having an issue trying to set up routes in wrangler.toml I want to set both the custom domain and also the wildcard routes but I can't...

I am using "wrangler pages dev" for

I am using "wrangler pages dev" for building a simple Pages site (static html). I am getting errors from my browser due to the css file being served back with Content-Type: text/html instead of text/css. I see a few similar issues from 1-2 years ago, but not many, and no fixes. I also don't think I've had this issue with previous Pages developments. Any suggestions?

not planned yet afaik

not planned yet afaik

In your Framework. Then when you run the

In your Framework. Then when you run the build command, it builds your Functions for you

I use a monorepo and lerna

I use a monorepo and lerna

Hi, `wrangler versions` is not working

Hi, wrangler versions is not working in 3.68, even though it's supposed to be there since a while.
Next