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

Page not found error 404

How can I change the root directory I just need to change it because my index.html file is inside a folder

[03a62085bd7fcfb9]: Cloudflare received a Phishing report regarding your site

i received email from cloudflare for some pages i have , my pages not scam or phishing , i dont know who reported and why reported ! and i dont know why cloudflare stoped my links !...

Unable to use Clerk with NextJS and Pages

Hey there, I just tried deploying my NextJS 15 app to pages and the page itself renders fine, but I am unable to use any sign-in button, as it will just result in me being redirected to "Internal server error" and this error message in my logs ```json "scriptName": "pages-worker--5456934-production", "diagnosticsChannelEvents": [],...
No description

React-Vite project how to have multiple pages?

I want to make mydomain.com able to also navigate to child pages at various url segments. Current: mydomain.com ...

TTFB fluctuates by >500ms across different regions

- speak-app.pages.dev - All deployments - Account ID: bc576cd565a37628a147704ae3703304 My team is attempting to improve the performance of our web applications, and our metrics indicate the p75(TTFB) values are different for users in different regions of the world. This is expected to an extent, but I'm reaching out because a difference is >500ms seems excessive. Perhaps something is wrong with our usage of Cloudflare Pages and/or next-on-pages....
No description

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...