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

Can we have an option to let worker's build variables and secrets extend the runtime ones?

When environment variables are misconfigured in production, it is really hard to debug since it only throws a 500 Error without detailed info. Currently, I'm using @t3-oss/env-core to validate my env variables, and I want to process it during the build time. However, right now I have to manually add those runtime variables and secrets in the build config, since it cannot get runtime ones. I'm wondering if you can give an option to extend the runtime variables? Because even if I can manually add...

How can I hide wrangler binding when deploy?

Sometimes, I want to share development status to team member, but npx wrangler deploy command keep printing my environment. I cannot find any related parameter at deploy command document tho, so need some help. It's very annoying when I have to deploy at VSCode with screen sharing, so I want to hide it - If it is possible, how can I do it?...
No description

Worker Not Executing at DNS/End-point Level - Dead in the Water

Hey. As I am learning to use the Workers, it seems to never want to execute at the end-point. I can get a "Hello World" style thing working fine in code view, but when I add a simple script to execute a /__rbcheck url to see when it is live on site, it never works. I have @/www full DNS for the domain, I also have routed www. and root with /* - and not doing it in development on mode. In dev console I can see the site is going through CD DNS, and I have waited 24 hours at one point to see if that made a difference with the worker but still nothing. It is testing on a FREE plan, as I wanted to see it work before going deeper. I even tried to whitelist some IPs but still nothing. ...

Proxy requests inside workers

Inside a Worker I call an API that requires me to specifically whitelist IP addresses. Since I cannot even specify IP ranges I was thinking about proxying the request through a server with a static IP set up by me, but I'm not sure how to do it properly inside worker's fetch. I noticed we can specify cf.resolveOverride to redirect the request to an alternate origin but docs say "resolveOverride will only take effect if both the URL host and the host specified by resolveOverride are within your zone". While my server can be set up in my zone, the API server is not up to me obviously. Does this mean that I cannot use resolveOverride? What should I use instead, or what do you suggest me to do?...

Worker identity federation?

(feature request) Are there any plans to issue identity tokens to workers that can be used to authenticate to services outside of cloudflare? E.g. when worker is run, cloudflare issues a jwt token signed by cloudflare, with the subject "worker/<accountid>/<workerid>" Either have a general jwt with no aud, or allow a jwt binding to a subject, variable set in env ...

SSRed Nextjs site on workers with github

I've a SSRed nextjs site and I've to deploy it on cf workers. But options I've explored till now doesn't work. Can anybody guide a little bit? or point to any docs or guide something like that? it has to be deployed through github CI/CD

Unable to deploy SvelteKit to Cloudflare Workers -- wrangler not found

Greetings, folks! Trying to use CI/CD to deploy a small project from GitHub to Cloudflare Workers and I keep getting an error that the build system is failing to find wrangler after the build step. I'm sort of confused as to why it is unable to find when I have Wrangler installed as a dependency in my project and it's listed in package.json. What would be causing this?...

Fetch request in worker results in 503 and 1200 error codes

In my worker code, I send a request to Anthropic's API using a fetch request. Sometimes, it will return a 503 with the response body error code: 1200. When viewing the response headers from this failed request that I've logged, I can see there is a cf-ray header and the server header is set to cloudflare, which leads me to believe it is happening on Cloudflare's end. I've looked at these links and other Community issues but do not understand what is happening. I added retries in my server logic as well but this does not help. This started on Sept 24th....

Define Worker Secrets via Terraform v5 without also defining the Worker itself?

I saw the post that Workers can now be published via Terraform, but it looks like you can no longer manage secrets (as you could with Terraform v4) separately from defining the entire Worker? I'd like to be able to utilize the API to upload and publish worker versions, but still add/manage secrets accessible by the worker via Terraform. Is this possible?...

Run Opennext.js + Prisma & Neon + Nextauth

I'm currently unable to succesfully build an app using opennext, prisma orm and neon adapter. I followed all the tutorials proposed by opennext and prisma but it's not working at all. Anyone was successful?...

Increasing Pages build time timeout to 60mins?

Hello there, Wondering if we can request to increase our build time to 50-60minutes. We're building our shopify headless website but we're hitting the error at around 30-40minutes. If this is allowed, can anyone help us with this please. We're on a paid business account and can't reach them through phone. 🙁...

Build Notifications?

How do I get emailed about failed builds? I saw this: https://blog.cloudflare.com/introducing-workers-usage-notifications/ but it seems out of date? There is Pages but im not using the deprecated pages im using Workers?...

Please could a lovely internet gem help out with my lost SEO activity?

Hi there, my name is Paul Unlocks. Could I please have some assistance with my freshly moved service onto cloudfare? I uploaded my website and went through the automatically provided DNS setup to move away from namecheap. Before I was #1 on google by default. No spend. The instand DNS is updated to cloudfare, I am not even on the first page. ...

HIPAA and BAAs on workers

Hey all - I just built out some infrastructure for a clinic management application on Cloudflare which involves: - workers for platforms dispatching to per tenant workers - d1 and r2 per tenant worker After I built this out I realise Cloudflare only signs BAAs for enterprise customers....

Error: proxy request failed, cannot connect to the specified address

I'm trying to get to the bottom of some intermittent errors I'm seeing. When connecting to postgres (supabase via postgres.js) from a worker, I'm getting occasional errors of the form: Error: proxy request failed, cannot connect to the specified address I'm connecting directly to the supabase PGBouncer, not via Hyperdrive (we saw this happen more often when we used Hyperdrive)....

Visual Studio Code local preview of website works, but now it's broken on Cloudflare Pages?

Hi all, I own a website on Cloudflare called jippy.download. On the website I have a section where you can stream videos hosted on an R2 bucket. ...

Queue consumer bug with Terraform (CDKTF)

I'm running into an issue with cloudflare_queue_consumer Here’s the snippet: ``new QueueConsumer(this, ${applicationName}-queue-consumer`, { accountId: cloudflareAccountId.value,...
No description

workers-types and wrangler types cannot coexist in monorepo without breaking ENV type

I have a main RRv7 application which generates its types with wrangler types command. However, within the same monorepo I have an astro docs site which uses the astro/cloudflare package, under the hood this still uses the cloudflare/workers-types package. When I install this in my monorepo, all my types for ENV that are coming from wrangler types in the other package are undefined / don't resolve correctly. The namespace appears to be causing a conflict. Is there any way to handle this when I don't have control over a dependency that is still using the workers-types package?...