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

Cloudflare pages drag and drop doesn't seem to work

I have tried to upload a folder which has a single index.html which works on my local machine and the folder only contains that index.html but when I upload that to cloudflare , It does create a cloudflare pages but I am not sure how to access it , simply going to the cloudflare link doesn't work

JS.next on pages problems.

Hi Cloudflare Discord, I have been working on a next.js webapp and trying to get it deployed to Cloudflare, but I am having some issues getting my D1 database hooked up and my functions recognized. This is my first time deploying to Cloudflare pages and my first Next.JS app, so I am considering just starting over with a demo project to get things working, but I thought I would ask for some help here first in case I am close to getting it functional. I have followed the Next.JS guide on the Cloudflare docs, but no luck. I am probably just missing something super obvious. ...
No description

Web Analytics SPA

Docs claim the beacon script automatically reports client-side navigations in a SPA, but I have not observed that to be the case. Any tips or experience with this? Perhaps I'm misunderstanding what exactly it is recording for a SPA. My assumption would be page view, but again, I'm not seeing that.

Really new to cloudflare and help would be appreciated

https://sirdso.pages.dev/ sirdso.dev I just shows error code 404 and i dont know what im doing wrong, also this is my first domain so i dont really know what im doing...

Cloudflare Pages API: Get information for a static site without requiring auth?

Basically I am wondering if there is an endpoint that lets me query basic information for a static site hosted on pages. An equivalent to neocities' GET /api/info?sitename=SITENAME!

Cloudflare Pages repository limit

We use a monorepo to deploy our blogs to multiple CF Pages projects. But CF Pages have a limit up to 10 projects connected to the same repository. We need to create more projects, we already sent the form requesting for limit increase, but not a response in 2 months. Anyone have a contact or know other way that we could request this limit increase?

Cloudfare Catches but never publish

Cloudfare catches but never publish I'm deploying from Github and I can see a notification saying that the deployment to Cloudfares is done but It isn't... Link : sejed.pages.dev (It doens't work) Deployment ID : aaee49bc.sejed.pages.dev...

[Cloudflare]: [ACTION REQUIRED] Daily request limit exceeded for Cloudflare Workers and/or Pages Fun

I have multiple projects. Where can I see how many requests are used by each project (or even deeper, by which function or page)?

DNS_PROBE_FINISHED_NXDOMAIN and then HTTP ERROR 404

I am not sure why this is happening, I run it locally with npm run dev and it works perfectly, the build goes perfectly on cloudflare, then when I actually go to the site it initially gives a DNS_PROBE_FINISHED_NXDOMAIN error, then goes to HTTP ERROR 404 after like 5 minutes. I got a whole lotta nothin tbh. Everywhere I look it says that Cloudflare isn't even supposed to give 404 errors....
No description

Following the Fullstack Auth with Next JS and D1 tutorial but having issues on step 4

â–² ERROR: getCloudflareContext has been called in sync mode in either a static route or at the top level of a non-static one, both cases are not allowed but can be solved by either: â–² - make sure that the call is not at the top level and that the route is not static â–² - call getCloudflareContext({async: true}) to use the async mode â–² - avoid calling getCloudflareContext in the route ...

'content-type' header issue when validating ApplePay Well Known Association file in Pages instance

Hi there, I've been directed here from CloudFlare Support. I have an Apple Well Known verification file saved in my Pages application: https://checkouttemp-dev.shopthru.dev/.well-known/apple-developer-merchantid-domain-association...

CF Functions - Can you test pages functions in dev mode with HMR?

Every time i need to test a local functions in my functions directory I need to - npm run build - wrangler pags dev ./dist I can edit the functions locally, but if I make changes to my client side codebase, i need to build again....

Heavily protect a route from ddos

I have a route '/ai-example' that has an AI model that takes a 1-5seconds to repond, Now I want every person going to that route through a captcha or something, then that request is going to go to some '/api/ai-route' that I want to rate limit or something, I want these routes to be completley free from any spams or something similar.

Question about `pages functions build` command

I'm using the pages functions build command, then deploying it through _worker.js (Advanced Mode). 1. The build command was bothering me about Node.js compatibility even though my wrangler.toml file has the required properties. I suppose that means this command doesn't look for a wrangler config file? 2. If that's the case, can I put my wrangler config file somewhere else when deploying so its service bindings are used?...

Creation of first Cloudflare Pages Project fails

Somehow I can't create my first cloudflare pages project. Via CLI I get: ``` ✘ [ERROR] A request to the Cloudflare API (/accounts/MYACCOUNTID/pages/projects) failed. ...

Sveltekit: adapter-static with Cloudflare D1 - platform.env.DB not found during build

I'm using SvelteKit with adapter-static, but I want to use Cloudflare D1 for database queries. I created the D1 database using pnpm wrangler d1 create, and everything seems fine. However, when I try to build my project, I get an error saying that platform.env.DB is not found. Since adapter-static generates a fully static site, is there any way to still use D1 in this setup? Do I need to switch to adapter-cloudflare, or is there another way to access D1 while keeping adapter-static? Any guidance would be appreciated....

Vite+react+tsx webpage not building wrangler

I am trying to setup this gh-pages website on Cloudflare, but i have an error with wrangler. This is the website(https://renepruu.github.io/tehnosysteemid.ee/). As i understand i should not need the wrangler for this kind of website, but i could be wrong. The error:
2025-03-06T11:37:36.831Z Initializing build environment... 2025-03-06T11:37:44.184Z Success: Finished initializing build environment 2025-03-06T11:37:44.313Z Cloning repository......