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

Error connecting to git account

Cloudflare Pages was unable to be installed on your GitHub/GitLab account. Please attempt to fully uninstall and reinstall the installation. Can anyone help?...

Werid build error

Hello, i host a large website via cloudflare pages because its fast and stuff but recently when building my project it throws a ELIFECYCLE  Command failed with exit code 2. after computing gzip size... for some reason, i know its not vite because i can build it fine locally in the cli

create-cloudflare git integration

Is it possible to have the autoamted git integration with projects created using the create-cloudflare CLI? https://developers.cloudflare.com/pages/configuration/git-integration/ suggests going to Settings > Builds & deployments and clicking the Configure Production deployments, but this seems outdated compared to the existing Dash. Any ideas?...

new dashboard multiple env problem

Unable to add multiple envs via the dashboard anymore for pages.. used to work just fine by copy pasting all in the name field. Doesnt work anymore have to manually add each which is annoying. Anyone has a solution to this?

Deployment fails unless env variable is a secret

Other variables do not have that issue, secret or not. Or perhaps they do and I haven't yet encountered that problem. Other variables have the same problem. Just confirmed. I tried adding the variable to wrangler.toml but to no avail. Screenshots show that it's there in the settings but the build fails nonetheless. Strange....

How to get R2 to work with Astro?

I want to use CF R2 in Astro + CF Pages project, I have setup the domain and made the bucket public. But when i try to make a put into R2, it doesn't do anything. Am i doing anything wrong? is there a way to debug this? I'm using Astro's actions here...

Error: Pages only supports files up to 25 MiB in size

I got this error for an app that I bought (nextjs using pnpm). They suggests to work with vercel, but I want to keep working with CF. If I upgrade this project, can this issue be fixed? Or maybe I should use other output folder I am using .next now. Which folder should I use for the output? ...

env variables

Hello , So I'm trying to deploy my nextjs project on cloudflare, I have env variables from dashboard configured already, but when i"m trying to build it's not able to see variables from there, im using t3-oss for env in my project, everything works fine with .env.local but not working on production, any suggestions please?

forward pages requests to origin

can i have specific pages requests resolve to the origin when using pages? e.g example.com CNAMEs exampleproject.pages.dev...

Unable to create a new project

When connecting Github I get an error "Error connecting to git account". The reason I'm creating a new project in the first place is I had to delete the "old" project because I was getting the same error after changing the repository name. I tried uninstalling and re-installing Github integration a hundred times. I tried connecting another repo. My last resort was deleting the whole project but even that failed. You change the repo name and the whole hell breaks loose 🤦‍♂️...

Can't change production branch

I don't seem to have the option to change the branch my production environment uses despite Pages being linked to the git project and successfully deploying a preview of another branch. Is there a permission missing somewhere for allowing visibility to all branches?...

return this.listener.apply(this.target, arguments);

I'm suddenly getting this error in all my builds. I even Retried previous build that were successful (2 weeks ago) and they are all getting this error. I have no idea what's going on.

sitemap.xml not reachable by Search Console

Hello my basic pages website has a sitemap you can view at: https://ansi-generator.pages.dev/sitemap.xml As you can see this works fine, but in Google's Search Console it's saying it can't retrieve this... why? (see image) Anyone else ran into something similar? I found a couple threads but no solutions: https://community.cloudflare.com/t/google-search-console-couldnt-fetch-sitemap-xml-in-my-cloudflare-pages/428153...

Can I pre-compress a file to provide a Content-Length header?

As taken from https://community.cloudflare.com/t/no-content-length-header-when-content-type-gzip/492964/2 it appears Content-Length is generally unavailable for cloudflare pages objects as they are transparently compressed and delievered without knowing the final size of the content. I have a rather large WASM file that I'm wanting to display a loading bar for as it is downloaded to a browser from cloudflare pages. While I could likely (?) solve this by disabling compression for the file, the savings from compressing it are quite significant. Is it possible that I could precompress the file with brotli and provide the headers like so? _headers...

How can i collect logs of cf pages?

I want collect logs to debug and trace user event. Can i collect it?

Redirect Issue: https://domain.com Not Redirecting Properly Despite DNS and Page Rule Setup

Hello, I’m experiencing an issue with my DNS and page rules (example domains and ips) configuration for my domain domain.com using Cloudflare. Here’s a summary of my setup and the problem: DNS Records: An A record for domain.com pointing to IP 111.111.111.111....

Deploying to Cloudflare's global network failing after 20 minutes

Hello everyone. I am trying to deploy new changes to my Astro website, however I am getting an error after 20 minutes. The sitemap of our landing page is quite big so we were already experiencing deployment times above 4-5mins. However, since yesterday the deployment time has increased to 4x. All the help is appreciated. Thanks. My pages.dev url is the following: https://179fa5bd.landing-page-3wh.pages.dev/ Deploymend ID: bcc3b53a-9bea-4ba2-9022-5b33ac4e485a...

Custom name already associated ... find it and remove it. But I can't find it!

I'm getting the error message that my custom domain is already in use in pages. I can't find it anywhere else. The first error was a 1016. Now I'm getting Connection Timed Out. Maybe it just needs to propagate? Can you add the pages url directly to the DNS? That's not normally what I do but trying to add it through the pages settings/custom domain didn't work. How to go about resolving this? I removed all CNAME records. Then I added back www and a second record I populated directly with the pages url. Still not working. I've done a few other things from the dashboard and using Curl. Also, why am I prompted to add an A record or CNAME for a top-level domain I registered with Cloudflare? I removed the A record today that pointed to an old server. But my Dig commands and DNS lookups show my domain using the Clouflare servers....

Exceptions not being logged

Hi, I have a Remix app successfully deployed to Cloudflare Pages without issue. The app is running, working, no problem. However, if I throw an exception for any reason, and don't handle it, I get a server error. That's expected. ...