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

Angular app building but not accessible

Hello, I have made an angular app and am having trouble publishing it to pages. My main project directory is as follows domain-finding-website-3/ ┣ backend/...

PNG image not loading on site

Page: https://dev.react-native-application.pages.dev/ Hi, I'm running into an issue where in my cloudflare pages, one png image is not loading up. That PNG image shows it was uploaded in the build and has a size of 5.44kb. Not sure why the other PNG images are loading, but this one isn't. I saw that we can disable rocket-launch but I don't believe that's in pages. This is the code I'm using...
No description

Failed: build exceeded the time limit and was terminated

from today my pages cannot deploy, after clear the cache, still the same error… even cannot install deps...
No description

Smart Placement is unpredictably applied across deployments

We have Smart Placement enabled for a few of our Pages projects but we've noticed that Smart Placement doesn't always seem to be active and varies from deploy to deploy. Looking at our logs our users are seeing much higher latency to our backend than they would if Smart Placement were active and being applied consistently between deploys. Similarly, not every deploy seems to get a cf-placement header in the response. It seems like some deployments are getting placed correctly (near our backend) and some aren't. I've verified it's not just me, our users are also not being placed (because of their increased latency) so I don't think it's just me being in the holdback group. The documentation refers to an API where you can get the placement status for a Worker, but it doesn't seem to work with Cloudflare Pages....

Redirect Rule for Angular CSR App

Can someone please help me choosing the correct redirect rule for my Angular CSR App? I am getting the error that my redirect rule is invalid. ``` 23:08:33.301 Parsed 0 valid redirect rules. 23:08:33.302 Found invalid redirect lines:...

I added a Response Headed with the ip.src.city, but i cant read it on the client side javacript?

I belive headers are not readable in JS in the browser unless another request is made right? But I can read document.cookie, so how can i set a dynamic cookie with the ip.src.region? set-cookie but what is the expression in the transform ? country=ip.src.region does not work. I am using Cloudflare pages and transforms....

Error: Importing "@vercel/next": require() when building from Git

Hello, I have been toying with a NextJS app locally and decided to rename it. I wanted to setup git build. So I renamed the project name, and tried to connect it through GitHub. However, the build is failing. Running the following command works on my device (tm). Before this I was deploying from my computer without any problems. Cloudflare builds do not work unfortunately. I tried to use npm instead of bun, change the node_version, etc. Still nothing. (When I do Retry build.) The build error seems fairly weird and I am not sure how to proceed....
No description

My Pages site is not working. Any ideas please?

prototypekitcourse.com Please help asap....
No description

Add a *.pages.dev alias to an existing project

Hello there I have an existing Pages project configured to a GitHub repo that works ok. I'd like to add a second alias URL to this project using pages (NOT an external domain, since I don't have control on our customer's DNS to register new CNAME entries) I also tried to create a new Pages project but I can't use a GitHub repo that is already used in another Pages project....

Custom Domain for Cloudflare Pages Not Working

Hi, I recently added a custom domain https://ficcabs.com/ to Cloudflare Pages. Unfortunately, the page doesn’t work when loaded in a browser. I get the old Namecheap domain parking page or an error from Cloudflare, sometimes something does not load at all. I have already tried purging the DNS. DNS lookups show that the custom DNS servers are properly set up by the domain register. However, the CNAME I configured doesn’t show up....

Restrict Token access to specific Cloudflare Pages application

Is there a way to restrict a token to a specific Cloudflare Pages application? I want to use this token in CI/CD to automatically upload my deployments.

nextJS Build Manifest...

We are seeing an issue where the buildManifest and other files inside of /_next/static not being built. The Build ID seems to be cached or something. The NEW build ID file is present, but certain files are not being picked up.
Has anyone ran into this? Any thoughts on fixing?...

Why Vercel and Netlify if we can go to Cloudflare Pages?

Hi, I'm checking these providers to deploy my NextJS project. It's a website with 20M/month page views, it's an ecommerce. In vercel and netlify they tried to push me to enterprise plan where I can have a good support and a huge SLA, but in Cloudflare Pages and Workers I don't see the enterprise plan and the business plan is quite cheaper than the other enterprise plans. What am I missing?...

Cache-Control and ETag headers missing in 304 responses

200 responses generated by Cloudflare Pages include a Cache-Control: public, max-age=0, must-revalidate and ETag headers. But those headers are missing in 304 responses. RFC 9110 mentions the server MUST generate those headers [1]:
The server generating a 304 response MUST generate any of the following header fields that would have been sent in a 200 (OK) response to the same request:...

Cloudflare Deployment running only one

I can only run one Cloudflare deployment I wish to run 4

How to upload a page using S3/ Worker API.

I want to upload a zip file to a pages but the file is too large. How can i upload it?