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

Disable DDoS protection in order to test surge

I would like to temporarily disable the DDoS protections of cloudflare on my worker so that I can send A LOT of requests into it. I want to test how will my database will behave under high load and right now CF is stopping me from sending these requests

using `not_found_handling = "single-page-application"` and a worker script together?

I'm trying to deploy an SPA using workers assets (https://developers.cloudflare.com/workers/static-assets/get-started/#deploy-a-full-stack-application) but I'd also like to be able to 'fall back' to the worker script if the SPA's routing logic rejects the request. Currently if I have something like...

Defining RPC methods nicely

Since the methods are pretty big it's nicer to define them in a separate file, but then to add them as RPC methods I do: ```js export default class Worker extends WorkerEntrypoint { fetch(request: Request) {...

Help removing rate-limit for workers from account

Hey there! I have a worker that's an API Gateway for all of my services, and on a very low load it's being rate limited by "Rate limit rules", when I have none set up I've tried everything to bypass this, nothing worked. I created a support ticket (#01355009)...

CouchDB

I know Workers requires Hyperdrive to connect to an external SQL database. What's the situtation with NoSQL Databases. Specifically CouchDB that has an HTTP API. Is it subject to the same limits or should it just work?

Can Worker Routes be used to host a separate backend on the same domain where the web app is hosted?

Say we have domain.com where on app1.domain.com we host our app. This app has a front-end you'd access by going to app1.domain.com (or any other sub-domain like app1.domain.com/my/route). The web-app, a mobile app, or a third-party service might need to fetch data, ideally from app1.domain.com/api/requested/resource. Can I host the front-end with Workers/Pages on—by default—all routes on that subdomain, but "reserve" /api/* to be used by a separate worker running the backend code?

Access Bindings After Build (From Command)

I'm trying to run some command that requires access to the bindings (D1) in a build command after it's built. I'm not seeing my DB binding inside of process.env...

Answering datacenter

Hi guys, what are the causes (tested myself today) that lead to a datacenter form France to respond to a visitor from Nepal or a datacenter from GB to respond to a visitor from US? I know for sure he's from US/Nepal since we tested with real clients. I'm just wondering what should I use or what should I do in order for my workers to respond from the closest location to the user....

Sharp JS

Anyone got Sharp to work on CFW? https://sharp.pixelplumbing.com/...

Stuck on Fastapi Python application deployment

I would like to know how to fix this as I am stuck deploying a server side flask application
No description

Whats wrong with ip (Error 1000)

Hi there! I add "A" record to open my personal site, but on open i have Error 1000. DNS points to prohibited IP. When i try add different ipv4 - work correctly. What's wrong with my ipv4?) How can i check it? ipv4 - 45.133.247.128 ...

Subdomain Redirection for `/blog` Not Working

Hello Cloudflare Support, I have configured a Cloudflare Worker to handle redirection for a subdomain. The intended behavior is to redirect all requests to the /blog path on the main domain to the corresponding subdomain (e.g., picsht.com/blog → blog.picsht.com)....
No description

sql.prepare is not a function in Durable Objects SQL

In Durable Objects SQL - I'm trying to test preparing statements, and I'm seeing that prepare is not a function . Is sql.prepare not available in Durable Objects SQL storage?

Get more details about the datacenter that served a worker http request

How do I get more details? I am interested mostly in the country where the detacenter is located. Any ideas?

Auth0 Edge runtime for Cloudflare pages compatibility

Hi There, I am using A cloudflare page to host my website and use Auth0 for my authentication. When running locally, my build completes. However, when i deploy to cloudflare, i get this error: ```The following routes were not configured to run with the Edge Runtime:...

Where is the wrangler.toml file ?

To keep Logs enabled on my Worker, it seems I need to do what's on the screenshot. That's all well and good, but where is that file ? I only have a worker.js file in the edit UI.
No description

Specific billing inquiries about Cloudflare Vectorize

I can't find a clear description of the counterpart in the documentation

cloudflare worker custom route dns update not propagating

Hi, I added a new worker and added a custom domain for it but seems like it is not propagating at all (the dns change). This is my worker route followdev.technbud.com...
No description

Workers Routes keep disappearing

I have both set http routes up from my wrangler config and from the dashboard, and after a few hours the configuration disappears. Can someone explain why this happens?

525 on pages function when fetching specific url

I am writing a pages function and received a 525 error. At first I thought I was doing something wrong but after hours of debugging I tested a different api endpoint and it worked. I've searched the community forums and tried everything: 1. Purging the cache 2. Turning on dev mode. 3. Changing the ssl encryption mode....
Next