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

Convert PHP with local DB website to Pages Website using cloud db.

I am a beginner in web development and I made a basic website for managing my expenses, it runs well on my machine but I'd like it to be accessible from anywhere. I didn't manage to convert the backend code to JS even with help from AI, if anyone knows a proper way to do it or is willing to help, I'd appreciate.

Webhook on successful Pages deployment

I have a "Pro" cloudflare subscription and have created a webhook under the "Notifications" section. How can I receive a webhook notification upon successful deployment of a Pages project?

pages & nuxt/nitro fails with nuxt 3.15

building and deploying the project locally works fine, but when i use the github hooks, it allways fails with the message: 00:05:14.424 Error: Failed to publish your Function. Got error: Uncaught ReferenceError: Cannot access '_PerformanceObserver' before initialization at chunks/nitro/nitro.mjs:1:206873 and i cannot find any specific infos why this is the case....

Moving a custom domain from a Worker to Pages

Hi all, We've had a custom domain setup against a Worker for a while, it splits traffic between 2 origins based on path. Ready now to move it back to the Pages project it used to be setup against and getting the following error: "That domain is already associated with an existing project. Use a different domain or find the project already using this domain and remove it.". Here's the steps I've followed:...

Bot protection for Pages doesn't seem to work

I've been on Cloudflare since September 2024 and I enabled the bot protection feature when Cloudflare released it. However, I've noticed that since enabling it, the metrics for my site haven't changed. For example, according to Cloudflare, my site received over 40k unique visitors for the past 30 days (screenshot 1). Meanwhile, Google Search Console only reported 5k clicks (screenshot 2). I know Google Search Console can only display results from Google search, but other search engines can't po...
No description

how to use build-time secrets with Astro

hey folks I'm building an Astro site that relies on a build-time secret, assuming for prerendering but it's really only needed for runtime. I've defined this var in my env schema, but I'm encountering a build error with this var defined in my settings `` 17:59:51.389 01:59:51 [ERROR] [vite] x Build failed in 10ms 17:59:51.594 [EnvInvalidVariables] [astro-env-plugin] The following environment variables defined in env.schema` are invalid: 17:59:51.595 ...

NextJS NEXT_PUBLIC vars on the client

NEXTPUBLIC* variables should be accessible on the client-side yet process.env isn't available and import { getRequestContext } from "@cloudflare/next-on-pages"; is only available on the server. How can I access these public variables on the client?

Request for Removal or Increase of Cloudflare Pages Quantity Limit

Dear Cloudflare Support, We're writing to ask for the removal of the Cloudflare Pages quantity limit or a significant increase. We use Cloudflare Pages to serve our users. It offers reliable hosting, fast deployment, and seamless integration, which are crucial for our operations. Our user base has reached 10,000 and is growing. The current limit prevents us from creating enough pages to meet all users' needs, affecting user experience and our competitiveness. We can't scale services as needed, such as creating dedicated pages for different user segments. This hampers user engagement and retention....

Need to enable Analytics Engine error.

Deployment id: 32d7f1bb-d174-4a36-9836-fd07f00c1b7d Account id: f267c3f48278c9dfbe3912621c090dbd I have pages deployment linked to GitHub, when I make a new commit, I get this error at the end of the deployment logs: ```js...

Public system env variables

The framework I am using requires exposed env variable to be prefixed with PUBLIC_ I am trying to use CF_PAGES_COMMITSHA from CF but I am not able to build with that since it doesnt prefix PUBLIC How can I make it so cloudflare also exposes one with PUBLIC_?

Real-Time Logs not showing error responses

I'm trying to debug an issue with some sporadic errors which result in a 401 api response from my pages function. When using the Real-Time Logs stream, all 200 OK responses come through but the 401 error responses do not. How can I get all api responses to show? Would it be framework specific? I'm using Nuxt3 and have logging on all requests, responses and errors through Nitro hooks api. ```ts...

Why Does Cloudflare Pages Hate My PDFs? A Mysterious 500 Error Awaits Your Genius!

Hey everyone, I’m scratching my head over a stubborn issue with Cloudflare Pages and Nuxt 3’s serverless API. I’m trying to process PDFs using pdfjs-dist, but I keep hitting a 500 error. The import import * as pdfjsLib from 'pdfjs-dist/legacy/build/pdf.js' doesn’t seem to play nice in this serverless environment, and even my workaround isn’t cutting it. Here’s the error I’m getting: ```...

Tracking web analytics for a workers subdomain instead of custom domain

Hey there! I've looked through both Pages and Web Analytics docs, but couldn't find an answer to the following question. And I am sure I am not the only one with this situation. 1. I have a custom domain, which is managed on Cloudflare custom-domain-whatever.com...
No description

Downloading a page

Hi! I had my harddrive corrupt and I fear I've lost my data! I need to get the latest download of my page. How can I do this? I don't know if I have a way to get to the original files since they are on a harddrive that's corrupted. This website is used for my D&D campaign as well as others, and I frequently update the Wispy page for my campaign. The file size of everything is around 800MB so I understand that it would take a while to download. AccountID: 6c17cae620e86e5bc9032c254dfd13c1...

ECONNRESET npm error when building on Pages

Hello, we've been running into an intermittent ECONNRESET error during the npm install step when building our app on Pages. This never used to happen but it started happening daily over the last few weeks. We're using Node v18.20.0 (npm v10.5.0). Have you seen this type of intermitent issue before? I'd appreciate any suggestions for how to fix it. Thank you! Happy to send an example build, but here's the relevant portion of the build log:...

The user agent string "bushbaby/2025.2.2" appears to be a non-standard client identifier with severa

Unrecognized Client Identification - Not associated with any known major browsers (Chrome, Firefox, Safari, etc.) - Doesn't match common web crawlers/search engines (Googlebot, Bingbot, etc.) ...

Wasm on opennext/cloudflare causes issues with Webpack

I'm trying to use @cf-wasm/photon (an Image manipulation library) with opennext well the reason is Cloudflare Images having too expensive and unreasonable pricing compared to other products so as a cost saving measure in a personal project I wanted to avoid Images product much as possible and reimplement It's functionality through Workers and R2. What I do: - Send request to NextJS api endpoint from UI...

Error cloning private submodule repo

I have given permissions of both the main and private submodule repository to Cloudflare Github App, but it still is not able to clone the private repo. Here is the error. Can anyone help me please? ``` 00:13:34.656 Cloning repository... 00:13:35.299 From https://github.com/*************...

Point Cloudflare Registered Doman to IONOS Server

I am new to this environment. Not a deep developer but i do build websites and create graphics. I also host websites for clients. I am in the process of creating a personal website and i decided to use cloudflare to register the domain. Not knowing before hand how challenging it would be compared to other companies I have used, I am unable to point the domain to Ionos hosting server. Been working on this for almost 2 weeks. Right now based on some information I found on CF website is that all th...
Next