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

what us the best way to speed the cloudflare dns routing

Our api response time is around 10-15ms. But this same api with a domain cloudflare routing become 200-350ms. How can we speed up the routing time

astro site with kv binding deploys but doesn't work

Hey folks 👋 I've got a working astro site with no special setup or the cloudflare integration, and I'm on to my second but this one has a KV binding that I'm attempting to access on the homepage. Things deploy fine/no build errors, but the site throws a 500 and I'm not sure where to find the logs ```mjs // astro.config.mjs import { defineConfig } from "astro/config"...

any way to get compression for jsonl files

right now static jsonl files are served as application/octet-stream and as such don't get compression. any way to enable it? (i'm serving moderately large files that compress to around 1/8th of the size with gzip)

Page not rendered correctly on Brave mobile browser

Pages.dev : https://saitama.dbull.io/ Deployment ID : c3429f6120e579b477513ef4bff007b8dae490c8 Issue: our website is rendered properly in most modern browsers, both mobile and desktop. Except for Brave Mobile Browser. ...

Issue setting up custom subdomain to proxy branch of Pages

I have setup domain registered with cf (cloudflare) and setup a base pages (in this case napp). The base routing from napp.pro to napp.pages.dev works flawlessly, but when I am trying to route markdown.napp.pro to markdown.napp.pages.dev then it doesn't work. I am deploying via wrangler and all my deployment to the branch (in this case markdown) within the main pages site (napp.pages.dev) are shown as preview. I dont know if that has any issue, but the main site markdown.napp.pages.dev works flawlessly. I went through the channel for similar issue and read through a couple of posts, but none of those help me understand this better. Any pointer in this regard will be of great help....
No description

Usage of Cache API with Pages

I am developing with SvelteKit on Pages, and I would like to utilize the Cache API available in Workers. However, when I write the following code on the server side of SvelteKit: const cache = caches?.default; It returns undefined....

How to move a domain from one cloudflare pages project to another without downtime?

Trying to set a custom domain in a pages project, I get this message:
That domain is already associated with an existing project. Use a different domain or find the project already using this domain and remove it.
But finding the project already using the domain and removing it would cause downtime. Can I instead just change the DNS record manually? Is it necessary to configure something in the pages project?...

Adding a custom domain remains stuck at Verifying

I have a pages application. I added a custom domain, but it has remained at Verifying for 12 hours or so. I've removed and re-added this domain a couple of times to see that changes anything but no luck. After adding the custom domain I can see that it added a CNAME record with a Proxied status. I added the 2 Cloudflare nameservers to my domain registrar (namecheap). Just FYI, this domain was recently transferred to namecheap from google domains....

After deployment, not all assets were updated on the main page

I have a project connected to github with links to *.pages.dev and the main domain after the last commit *.pages.dev was updated correctly on the main domain, only the html file (the js remains old) ...

Deployment tries to use asdf but I don't want it to

Hi, I'm trying to deploy a project (yarn based) which has a .tool-versions in its root and it seems cloudflare pages deployment (V2) is trying to use asdf to resolve the yarn binary. In another very similar project, also having a .tool-versions, it was correctly using the system's yarn. I don't what it makes use asdf in this specific project. I've set YARN_VERSION to a specific version but that doesn't fix it. The build output log (it fails after that)...

Preview deployments

https://a0490490.camplejeune.pages.dev/ curl: (35) error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure I'm getting random SSL errors on preview deployments, I have quite a few pages on CF and notice that happens on certain domains and not others, has anyone else experienced this issue before and what can we do to solve it...

Attempting to fetch asset that doesn't exist returns index.html

Hi all, If you call ASSETS.fetch(req) in a pages advanced function for an asset that doesn't exist, instead of returning not found it just returns index.html. Is there a way to disable this behaviour? I basically need some way of checking if a static asset exists, and if not continuing instead of returning the asset....

domain not updating

someone help my domain is not updating to the current website code but the pages.dev is updating to the current one...

Stuck Deployment to Cloudflare's global network

I've done a deployment for a preview branch in my project, but it is getting stuck on "Deployment to Cloudflare's global network". It's been going for over an hour and it doesn't seem to have a timeout. Is there a way to get out of this? I've tried cancelling deployment, but it does nothing... The project itself has been built successfully and I can see the updated changes when accessing the url, so it seems like it has at least partially completed uploading to the Cloudflare network. Deployment id: d83c0090-17c3-467d-af95-fac6fb9519d0...
No description

can freends work with cloudflare?

can a freends subdomain work with a cloudflare pages

Custom domain DNS issues

Just set up everything with my domain provider and am now using Cloudflare DNS servers but still cannot figure out the reason to why my custom domain cannot find the DNS servers. DNSSEC has been set up. The DNS records contain two CNAMEs one directing users to the https and one for www. Any help would be appreciated!

Internal cloudflare error after adding back _routes.json to Pages app

shortsync-8ep.pages.dev deployment ID: f8482f6a-4b1d-4fdf-b814-aaf5cedd5a23 account ID: f5a4b3ee0a20c04c4bc9b4c50fc45ce3 ...

Change production branch name for pages direct deployment

Hey all, I've been deploying my pages projects using github actions (wrangler cli / wrangler action). I'm in the process of changing github repositories for the projects and as a result of this, the "default" production branch name has changed from master to main. However, when I do a deployment using wrangler pages deploy public/ it makes a preview deployment on the main branch. This makes sense since the default branch is configured to be master. Does anyone know how to change the "default" branch for a pages project? I poked around in the settings but couldn't find anything....