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

Workers are not global

I am from Australia and the worker are being requested from the US in san jose. I am def not using any vpns I dont know why its doing this do I need a paid plan to make them global or something?

opennextjs/cloudflare and images.remotePatterns

Hey there. I have built a NextJS site and inside it's next.config.ts I have set the images.remotePatterns value to have specific domains as covered here. https://nextjs.org/docs/app/api-reference/components/image#remotepatterns...

Memory Exceeded

We're running a Hono + TRPC api on Workers and our production throws a lot of these memory errors.
No description

Unexpected Cloudflare Worker Region

I’m accessing from Tokyo, the Cloudflare Worker is being executed in Las Vegas or San Jose. Why is that?

issue with a LoRa finetune on the Workers AI platform

The REST API for running inference (/run) fails with a "model does not exist" error, even though the management API (/finetunes) correctly lists the finetune as existing under the same credentials. 1.⁠ ⁠Proof the Finetune Exists (Successful GET Request): This curl command, using my API token, correctly lists the finetune, proving it exists and my credentials are valid. curl -X GET "https://api.cloudflare.com/client/v4/accounts/ACCOUNT_ID/ai/finetunes" ...
No description

Whats save to hardcode in the wrangler.jsonc ?

I have stuff like my secrets store's ID in there. Is this save to have it in there? Because I want to share my repository publicly and I have some stuff hardcoded in there....

What are the advantages of using Cloudflare's Fetch vs Node's Fetch?

I want to learn more about what the exact use cases and benefits are for calling fetch on a service binding vs using Node's Fetch directly as well as if I am doing it correctly. Here is some sample code: // fuseApi = env.SOME_API ... a service binding from wrangler.jsonc + generated worker types...

Build only on pull request

ive setup worker for an react app, and I want to get a preview build on PRs. This works if you have "Builds for non-production branches" turned on, but it also builds on each commit any way to make it so it only builds for PRs or a selected branch ?...

"It looks like you've run a Workers-specific command in a Pages project." on new project

i creating project with: pnpm create cloudflare@latest my-first-worker Im using sveltekit framework. if i pull project form github to cloudlfare it works but CLI not i get this error on every new project i create. What can it be?...

nameservers

I have a website hosted on a webhost server and im curious on how to send their name servers over to cloudflare.

Where are integrations moved to?

Hi, i upgraded my pages project to workers, but i cant seem to find integrations. I'd like to add Sentry to my project

Open a ticket with support over a week ago, we upgraded to pro, and still on free

#workers-help We upgraded from free to Pro over a week ago, I opened a ticket with billing support a week ago and have yet to hear from anyone Case # is 01559799 Invoice number is IN-40195707. I was really excided to be working on the pro version, because our client needs the security for compliance but this has got me really frustrated that its been a week and I have not heard back from anyone at Cloudflare. We are an IT Firm and then plan was to put all of our clients on Cloudflare, but we can't place another client through this....

[ERROR] No loader is configured for ".html" files: index.html

Hi. I feel like I've done really well getting as far as I have, but I'm still missing a detail or three. The error I receive is in the title. I have a Git repo I'm deploying from that contains these files (a basic static html site):: index.html style.css...

Creating a R2 Bucket with zone Europe makes it invisible to Worker

Hey, I just created a R2 bucket and choose zone Europe through the interface. When deploying my worker with a biding to this R2 bucket, Cloudflare kept complaining that this bucket doesn't exist. ...
No description

Getting an error when trying to build my react app using workers

22:12:25.954 ✘ [ERROR] Missing entry-point to Worker script or to assets directory 22:12:25.954 If there is code to deploy, you can either: 22:12:25.954 - Specify an entry-point to your Worker script via the command line (ex: npx wrangler deploy src/index.ts) 22:12:25.954 - Or create a "wrangler.jsonc" file containing: 22:12:25.955 {...

We are planning to migrate a big project to cloudflare workers but we have a question regarding cost

We are evaluating compute platforms for a large-scale deployment and would like to confirm Cloudflare Workers pricing based on the following usage: 100 million requests per day (approximately 3 billion per month) Each request runs for approximately 50 milliseconds of CPU time...

Worker still shows There is nothing here yet

Does anyone know where workers pull for the build. I have the build successful but unlike pages there is no where to point for it to pull the build out of. I have tried the build dir but still same error.

Worker invocations for Not Found with Vite Plugin

I'm building a full stack web app utilizing the Vite Plugin (building off this starter: https://github.com/cloudflare/templates/tree/main/vite-react-template), and for some reason my Worker is getting hit for GET /apple-touch-icon.png, GET /apple-touch-icon-precomposed.png, GET /favicon.ico. I guess browser is making these requests. I know I should probably add those files, but why am I getting Worker invocations for this? I thought this wrangler.json config would take care of situations like these, but apparently it doesn't: "assets": { "not_found_handling": "single-page-application"...
No description

Recover deleted files in R2

I urgently need some files that I assume must have been delete due to a lifecycle rule that I set up that deleted files after 7 days. I was wondering if there was any chance of getting these back?

remove folder names from url

So I have a worker setup that rewrites url's to not include .html in the address bar (example - somedomainname.xyz/pages/about.html > somedomainname.xyz/pages/about) is there a way to make it so it also works for folders? example - somedomainname.xyz/pages/about > somedomainname.xyz/about...