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

Previously deployed index.html still gets served

Hey all, I had my page running as a react app with a index.html. I now moved to remix with a server side rendering approach. Now, if i go to https://portcity-ai.com/ I still get served the old index.html. If I go to a path https://portcity-ai.com/services i get the new result from the route handler....

Corepack Error

Was there a workaround for the corepack issue that plagues the whole javascript community? I can't deploy any CloudFlare pages using PNPM because of the Corepack x NPM Key Rotation.

unable to get access to pages from russia

Hello. I want to place my application for users from Russia, but, unfortunately, I get the problem of the inaccessibility of the service. Please tell me what can be done? Through my domain, too, does not work. Is there any ways to get around this restriction?
No description

environmental variables toml and dashboard

I have quite a few non-secret text variables and i don't want enter these into the dahsboard. So I thought if I put them under vars as suggested in the docs name = "my-worker-dev" [vars] API_HOST = "example.com"...

An unknown error occurred. Contact your account team or Cloudflare support: https://cfl.re/3WgEyrH.

When I want to deploy my project to Cloudflare pages from Github repository it shown error on configure section, I have turned of my VPN and make the repository as public but it doesn't work. Any solution?
No description

github connection 404

when i click connect to github, it leads to a 404 page not found page
No description

Pages limit increase

I would like to know if this explanation is enough to increase the limit I'm building a large-scale static web application that exceeds Cloudflare Pages' 60K file limit and 100MB file size limit. This includes thousands of assets, pre-generated pages, and large media files, making the current limits restrictive. Increasing them would improve scalability, performance, and developer efficiency, eliminating the need for complex workarounds like splitting deployments or excessive asset optimization. ...

functions not found

đź‘‹ I hope you are doing great! I've searched far and wide and tried a lot of different to tweaks to solve this already, but hopefully you have an easy answer. I've made a pages project with my account - called fc-static-site. It is deployed via GitHub connection, and no matter what I do the /functions directory doesn't seem to get detected. This means the functions aren't deployed. Relevant attachments....
No description

Cannot see "Build Configuration" option for Pages project on dashboard

According to the documentation and this support ticket, I should be able to change the "Build Configuration" for my Pages project, like build command, etc. But there is no option like that in my Settings. I have spent an hour trying to find this option to no avail...
No description

Point production branch to somewhere else than mydomain.pages.dev

Let's say I have bought www.mydomain.com and I use mydomain as cloudflare project. Now, by default if I push to prod this will land at mydomain.pages.dev; But what I want is something obscure like ABCDEFGH.mydomain.pages.dev as a subdomain basically and point the production branch to there, is that possible? mydomain.pages.dev should be empty and not be used at all

Github connection error

Whenever I enter Workers & Pages I get this error. I tried multiple times going to Github Application settings and revoking all rights to Cloudflare then connect Github back, however it still keeps throwing this error. I'm just trying to deploy the same repo that I had posted before, however nothing I select from my repos works....
No description

Error when trying to build project in Cloudflare

So I'm having the following error when trying to build the project in cloudflare: ``` error during build: 17:19:52.767 [vite]: Rollup failed to resolve import "zod" from "/opt/buildhome/repo/api/shared/expenses.types.ts"....

Error when use git deploy nextjs 15 cloudflare page

Nodejs need ^18.18.0 ^19.8.0 >= 20.0.0 13:20:36.362 â–˛ > next build 13:20:36.523 â–˛ You are using Node.js 18.17.1. For Next.js, Node.js version "^18.18.0 ^19.8.0 >= 20.0.0" is required....

Static assets not updating in production despite successful deployment

I'm experiencing an issue with static assets not updating on my Cloudflare Pages production domain, while they work correctly on the development domain. Setup: - Using Vite as the build tool - Assets stored in the public folder ...

Site not loading for some users

My site hosted in Cloudflare Pages is not loading for some users. For me and most is working fine. Where should I check to troubleshoot this? What could be the problem.

Difficulty getting started with functions/_middleware.js

We have a nuxt app running on cloudflare pages. I'm trying to get some middleware running following the basic instructions fond tin the docs. For now, I'm just looking for confirmation that the middleware runs- can log something we can pickup in a wrangler log trail, add a header to a requst, anything. Evenutally, I'd want to use the middleware to connect us to some bug tracking solution. However, I just CAN'T seem to get functions/_middleware.js to do anything. I've tried the example provided in the docs plus a few logging statements. I've written some custom code to add headers, then to raise errors, then modify the body of html responses- nothing works, and I have zero visibility into why, both locally with wrangler or on a production-like feature app. Our nuxt config sets the nitro preset to 'cloudflare-pages', that handles all the cloudflare settings that would normally go into wrangler.toml for us- we have no wrangler.toml in the root of our project. Its my understanding though, that there is no additional config needed to run functions....

CORS problem

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://static.cloudflareinsights.com/beacon.min.js/vcd15cbe7772f49c399c6a5babf22c1241717689176015. (Reason: CORS request did not succeed). Status code: (null). None of the “sha512” hashes in the integrity attribute match the content of the subresource. The computed hash is “z4PhNX7vuL3xVChQ1m2AB9Yg5AULVxXcg/SpIdNs6c5H0NE8XYXysP+DGNKHfuwvY7kxvUdBeoGlODJ6+SfaPg==”. What does THIS mean/imply?...

Error 1014 and instability

Hello, i've been noticing some instabilities today regarding my pages websites, they seem to have network errors and sometimes requests get blocked. While doing some tests i noticed that i got a somewhat scary error 1014 (left a picture) so i'm wondering what the issue might be. (all the CNAME are owned by me so i'm not sure why i'm getting this error) Pages url: https://asm-editor.pages.dev/...
No description

"Add an A, AAAA, or CNAME record for your root domain so that my-site.com will resolve."

When I try to go to my website, https://my-site.com, it gives me "DNS_PROBE_FINISHED_NXDOMAIN". This is odd, because it was working before I added a subdomain called "games". I want my root domain to show the same page that's like "my-site.pages.dev"...
No description