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

workers-help

pages-help

general-help

durable-objects

workers-discussions

pages-discussions

wrangler

coding-help

kv

🦀rust-on-workers

miniflare

stream

general-discussions

functions

zaraz

⚡instant-logs

email-routing

r2

pubsub-beta

analytics-engine

d1-database

queues

workers-for-platforms

workerd

web3

🤖turnstile

radar

web-research

logs-engine

cloudflare-go

terraform-provider-cloudflare

workers-ai

browser-rendering-api

analytics

next-on-pages

cloudflare-ai

build-caching-beta

hyperdrive

vectorize

ai-gateway

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?
No description

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 🤦‍♂️...
No description

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?...
No description

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

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

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

Nuxt build timeout

My nuxt project is timing out in the build step and there are no errors in the logs.

Not able to delete a Pages project

Looks like I'm getting:
"{\n \"result\": null,\n \"success\": false,\n \"errors\": [\n {\n \"code\": 8000000,\n \"message\": \"An unknown error occured. Contact your account team or Cloudflare support: https://cfl.re/3WgEyrH.\"\n }\n ],\n \"messages\": []\n}\n"
"{\n \"result\": null,\n \"success\": false,\n \"errors\": [\n {\n \"code\": 8000000,\n \"message\": \"An unknown error occured. Contact your account team or Cloudflare support: https://cfl.re/3WgEyrH.\"\n }\n ],\n \"messages\": []\n}\n"
...

Getting 500 internal server error - Nextjs

For some reason my application is getting 500 errors when deployed, works fine when building and running locally but fails in production. When i check the logs i get this: ```json {...

How can I enable crawler blocking (and access other Security settings) for a static page?

I'm using a static Cloudflare page for a personal website with a fair amount of embedded media files. I'd like to block crawlers / AI bots if at all possible. Every tutorial I've seen about the recently introduced crawler protection features mentions opening Security/Bots section of the dashboard to access them. However, I can't find it in my dashboard and I can't reach what's shown on the screenshots by following the relative link /?to=/:account/:zone/security/bots/configure from Cloudflare articles (it redirects me to Websites tab of the dashboard, which is empty). I'm not sure why my static page doesn't appear in the list of websites. Is there a specific set of steps I need to follow to opt my Cloudflare page into the Website section of the dashboard and unlock Security features, or are static Cloudflare pages a separate concept not compatible with Cloudflare security dashboard?...

Using `wrangler.toml` and cannot find branch deployment controls

I created a pages project with _worker.js and a few distfiles. I am unable to find the settings referred to in this documentation about build configuration in settings. Is this not supported when using wrangler.toml?
No description

Login

Hello, I would like to know how can I have or create a hosting access so I can provide that to someone that will check my website.

how to use production d1 db in local

hi folks, i'm new to db world i have my d1 database defined in format on my wrangler.toml file. ```toml [[d1_databases]] binding = "CB_DB" # i.e. available in your Worker on env.DB database_name = "cherry-blossom"...