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

Under Attack Mode

Can I enable the under-attack mode for a specific subdomain, not the whole domain?

Request to Increase Pages File Limit for Account

Hello Cloudflare Team, We are a paying Cloudflare user on the Pro plan, operating a large-scale content application under the account dffdc9b96a8e662ff65e3db804b16efb. Our platform serves extensive, mostly static HTML pages for various types of content. The pages are rarely updated once published, and we rely on Cloudflare Pages to deliver fast and reliable access globally. However, we currently exceed the default 20,000-file limit. Our projected total of static HTML files is around 80,000. We would prefer to keep them unified under one Pages project to maintain consistent URL structure and branding, and to fully leverage Cloudflare’s global CDN capabilities without splitting across multiple projects or services....

Deploy hooks keep adding to queue

When working with deploy hooks with a CMS, Cloudflare seems to have queued builds for even longer than weeks. This is absurd as newer builds put into queue and unwanted builds are still running there is not convenient way to even cancel queued builds to allow latest builds to trigger, so newer builds are stucked forever...

Build Cache is not working for Astro Static build with CF Pages

Pages: cdfa2efe.website-4wh.pages.dev Deployment ID: cdfa2efe-8f76-4df8-b9f1-cd8dc2feafce Account ID: f69696ea6aec9975d75a770144674386 Hi, im using astro with a static build on cloudflare pages with git connected automatic builds....

Unable to get www. redirect to work

Pages: anre-homepage.pages.dev Deployment ID: I'm not sure :( Account ID: 9400aab31a94e83d5044bbc3fe4139df Error: Hi, I'm trying to set up the www. direct for my site (anre.ai), but am having issues even though I setup a CNAME which should be directing to it. The site without www. (so https://anre.ai) does work however. I tried turning off the proxy but it didn't work so I turned it back on....

Increase pages limit over 20k files

I hope you're all doing well. I'm reaching out to request an increase in the file limit for Cloudflare Pages deployments. I'm currently working on a project that involves a large number of images, and I've hit the 20,000 file limit for Cloudflare Pages deployments. The error message I'm receiving is: ` ✘ [ERROR] Error: Pages only supports up to 20,000 files in a deployment. Ensure you have specified your build output directory correctly....

How do I create a subdomain?

Do I follow the same process as creating a normal domain?

Deploying getting "This page isn’t working"

I'm deploying, on the dashboard it all looks good, when I click the link I get "This page isn’t working"

Custom domain not refresh

I have an Astro 5 application that uses actions, and I've deployed it on Pages with a custom domain. The problem is that actions work correctly with the default domain (*.pages.dev), but on the custom domain, I need to refresh the page several times for it to work (this happens every time I access it). It’s like the custom domain has a cache that doesn’t update. Any help?...

Deploying Remix w/Vite (dev v. prod)

I'm trying to figure out when I'll know if my project will deploy to Pages w/o error in production. Here's the situation: I'm working on a Remix 2.15.2 project that is slated to be deployed to Pages. I'm looking at upgrading it to Vite from what Remix calls the "classic compiler."...

How to proxy pages /api requests to cloudflare workers app

Hi, I am running 2 apps. first is Couldflare pages sveltekit app, another is cloudflare workers app(built using hono). I want all the /api request on from the pages app to goto workers app. How can I do this...

pnpm version in build and .tool-versions

I am using asdf to manage my local development toolchain and I have these 2 lines in the file
nodejs 22.2.0
pnpm 9.1.1
nodejs 22.2.0
pnpm 9.1.1
...

How to view and remove erroneous bindings?

In dashboard it only shows 1 secret, as expected. Seems like there's a phantom unwanted env binding but I can't access or delete using wrangler/dash

Can Worker responses be cached automatically based on headers?

I just moved from Vercel to Cloudflare Pages/Workers. I have headers set for cache-control on those responses, but they get marked with a header cf-cache-status: DYNAMIC still. I have this header set Cache-Control: s-maxage=60, stale-while-revalidate=600 How do I achieve that?...

Unable to Create Cloudflare Pages Project via API (Error Code: 8000000)

Description:
I'm encountering an issue when attempting to create a Cloudflare Pages project using the Cloudflare API. Despite providing all required fields in the payload and using a valid API token, the API returns the following error:
"An unknown error occurred. Contact your account team or Cloudflare support: https://cfl.re/3WgEyrH." Details: ...

How to set session cookies in preview environments?

I'm trying to set up auth for my preview environments. Since my auth server is auth.production.domain it can't set cookies for my preview environments. How do folks work around this to let auth work in previews?

After changing "Production branch", every build fails on "Cloning git repository"

Deployment of static txt file, after changing "Production branch" fails every build on "Cloning git repository": `19:51:18.997 Cloning repository... 19:51:19.777 remote: HTTP Basic: Access denied. If a password was provided for Git authentication, the password was incorrect or you're required to use a token instead of a password. If a token was provided, it was either incorrect, expired, or improperly scoped. See https://gitlab.com/help/topics/git/troubleshooting_git.md#error-on-git-fetch-http-basic-access-denied 19:51:19.777 fatal: Authentication failed for 'https://gitlab.com/xxx/xxxx/'...

Accessing remote D1 database during local dev with SvelteKit

I am building a SvelteKit site that is deployed to CF pages, and uses a D1 database. However, working on it is very painful due to not being able to test changes locally without the DB. Creating a mock database is not sufficient here, so it seems like I cannot simply use wrangler pages dev to get around the issue. ...

How to make Pages treat query string as file name?

The file names locally look like this: comments comments?id=123 It loads the correct file if I manually encode the ? To %3F in browser window and I type:...

Burst rate limit on workers Paid?

I pay for workers Paid plan, and plan on using the alot of requests on my Worker so that I can load LLM outputs inclemently to user. Each word = 1 request, expecting to see upwards of 20K requests per second and proably more soon would Cloudflare worker be able to support that much, or would I run into limits( cant find anything in docs to specify)...