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

When are new container-worker coming?

i haven't found anything, they were announved for june

Using fetch from inside worker results in 404 or 405 errors

I'm using fetch from inside a worker to call an external API (which has CF in front of the origin) and I get a 404 for a GET request and 405 for a POST. Both these requests work fine using fetch from my worker when testing locally or in the browser. What might be causing these issues when inside a worker?...

Custom domains outside Cloudflare zones

Is there a plan to allow custom domains outside Cloudflare zones for Workers? This is a blocker for me to move from Pages to Workers for some of my projects as they use subdomains from domains not handled by Cloudflare. https://developers.cloudflare.com/workers/static-assets/migration-guides/migrate-from-pages/#compatibility-matrix...

Workers with Secrets Store Secrets - Production Config

If you try to nest secrets store secrets like this in wranglers jsonc: ``` { "env": {...

Non-catchall user+ routing

If I setup a worker route for user@email.domain I would expect/hope that the + separator trick used by so many other providers would cause user+someservice@email.domain to route to the worker as well but that doesn't appear to be the case. I get a generic Address not found bounce message instead. What is the intent here? Do I need to setup a catchall route instead to deal with these?

Do `props` not work anymore?

I quickly made two new workers with pnpm create cloudflare@latest (A and B from here on out). I added a service binding such that A can fetch B. I also added the props field. ```json "services": [ {...

Workers dashboard create project from github repo, UI crash

Hi this might be a bug that will be fixed soon, but right now the dashboard keeps crashing when I try to create new workers project from github. To reproduce: * Create new project * Select workers and import from a repository...

Next.js project build missing public assets during deployment

Hi I have a next.js project configured with workers. It has connected to github and triggers a build automatically. My build command is: ``` npx opennextjs-cloudflare build...

Multiple Cloudflare Workers route to different URL paths

Hi everyone, I want to route several Cloudflare Workers to different paths on a subdomain. For example: Page1: subdomain.example.com/Page1...

Deployment problems via UI

Is anyone able to replicate the following issue? I'm not able to deploy a project via the Workers flow if the GitHub repo name contains text outside what's allowed for a project name, because the UI retrieves the repo name and pre-fills the project name with that repo name. When I try typing, the UI does not allow me to change what is currently input into the box.
No description

Prisma with D1 NextJs and CF Workers

I am trying to use Prisma ORM with D1 in NextJs on Cloudflare Workers. This works when running npm run dev. However, as soon as I attempt to use npm run preview or npm run deploy my website breaks and returns the following error when I try to use any server functions. I believe this has something to do with prisma since it is trying to access the file system, but I have driverAdapters enabled so prisma should work on the edge. Could this have anything to do with opennext, and if so how can I fix it? my repo is: https://github.com/BearTyree/Flash-Royale the error is: ``` Error: [unenv] fs.readdir is not implemented yet!...

Worker unable to connect to Mongodb Atlas (IP Whitelist)

I'm trying to connect to my MongoDB Atlas cluster from a Cloudflare Worker. The cluster has IP whitelisting enabled. I added all the published Cloudflare IP ranges to the whitelist, but the Worker still can't connect. If I remove the IP restriction in Atlas, the connection works — so it seems the Worker isn’t using the IPs listed in Cloudflare’s docs. I even pinged the Worker and saw an IP that's within the whitelisted range, and I tried manually adding that exact IP to Atlas — still no luck....

Domain name deduction issue

I want to ask you about a domain name. My domain name has been removed by me, but I am still being billed. Now I cannot re-import the domain name. How can I solve this problem?
No description

Restrict API Tokens

I am setting up a staging environment. I want to create an API token that can only modify certain workers for specific domains. but it appears that workers are under the Account (Global, not bound to a specific zone) and as such I cannot restrict an API token to have access only to certain workers. So what's your recommendation to create an isolated API token? Create a second account?

failed to fetch secrets store binding due to authorization error

I tried to use secrets but I got this error in build. Any idea?
No description

Cannot use 'in' operator to search for 'home' in undefined`

Hello, my production build worked fine on cloudflare and now, i don't really understand why, now i get this issue when i open the /home of my site When I open the root url, it works I use sveltekit ...

What is Wall Time data? Why is it slow?

What is Wall Time data? Why is it slow? 10000ms...
No description

New to CloudFlare Workers and Durable Objects

Hello everyone, I am a beginner to the ecosystem of CloudFlare, and I am highly interested in actively learning CloudFlare Workers and Durable Objects. I have started off by reading the official docs, if you can explain me about this / suggest some good resources, like certain parts of the docs / specific articles or anything, which you feel I must go through, it would be highly beneficial to me! I know reading and understanding by reading through the official docs is the best thing to do, but having someone's suggestions who are already working on it actively would mean a lot! Thanking you in advance!...

cloudflare image service

All my images have been deleted from my account. any solution the get backup ?