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

Increase limit on the number of pages projects

Hi! I requested today (25 march 2025) through the google form an increase in the number of pages projects that I can create. My account id is: 86d317aa260f4319163d235ae8b74699...

Activate www for pages.dev websites

It seems to me that pages.dev domains are only reachable without www, else the following error appears. Is it possible to access the page also with www or do I need my own domain for that?...
No description

Speed brain on pages.dev websites

I've a domain which is a pages.dev internally. It's fully static and can benefit with speed brain, however two issues are in the way - 1. html is not cached by default it seems, leading to a 503 on the prefetch request. 2. I see a caveat in the speed brain docs - "Currently, Speed Brain is not compatible with websites that use or rely on pages.dev". Any explanation why this is the case?...

In SvelteKit do I have to use `wrangler dev` instead of `vite dev` to make service bindings work?

I have two SvelteKit projects, both running on Pages. Project B has a service binding to Project A but it only works if Project A is running the preview script (which contains wrangler dev), and not when using the dev script (vite dev). Is this a "hard" limit or is there a way to make service bindings work with the "normal" dev mode?

Image transform binding for Pages

Hi, On the Pages settings, there is an option to add bindings and Images (transform) shows up but doesn't save. Actually images are not listed as a binding in the Pages documentation: https://developers.cloudflare.com/pages/functions/bindings/...

Next.js 15.2.3 Update Broke My Page: "Disallowed Operation Called Within Global Scope" Error

After updating Next.js from 15.1.4 to 15.2.3, my page stopped working, and I’m running into this error:
Error: Disallowed operation called within global scope. Asynchronous I/O (e.g., fetch() or connect()), setting a timeout, and generating random values are not allowed within global scope. To fix this error, perform this operation within a handler.
I’ve already updated the compatibility date, but after spending a few hours searching, I still can’t figure out what’s causing this. Any ideas or suggestions? I’d really appreciate the help! šŸ˜„...

Internal Server Error, NextJS, Pages

Hi, I come back to you with the same error that randomly reappears with me, once on one computer it works, once on another, and now not at all. To the point, when I upload my project in NextJS to Cloudflare Pages, everything is ok, there is no error, the page is deployed successfully, but when I go to the link the error ā€œInternal Server Errorā€ appears. I have tried the solutions that have already appeared on the forum, but nothing helps. The best thing is that I have not modified the code in any way for the last time and despite this, with the previous uploud everything was ok. After firing in terminal: wrangler pages deployment tail.... it receives this error:...
No description

Help with Purging and Updating Images

Hello. I am working with Next JS, Cloudflare pages, and Cloudflare Images free tier for their transformations. I followed docs for creating the image loader exactly and I currently have it working in production. What I am confused about is that it seems the image cache is only invalidated with a push to production. I tried to request an image with a "must revalidate" in the headers, clearing the cache on the zone that is it configured for, as well as creating preview builds to hope this would fi...

THE PROVE YOUR A HUMAN JUST SPINS, PLEASE HELP

I cant login of get on to the website because it just keeps spinning and wont let me in
No description

Production deployment fails but Preview deployment works.

Required info: pages.dev: connor-jones-web.pages.dev deployment-id: 80a172af-3025-4b90-b2dd-c25e3e7d5feb <- Preview (successful) 64b99836-630d-4091-aa52-8c0fff442267 <- Production (fail)...

Caching & public data exposed

Hi I am trying to migrate my site to cloudflare pages using @Cloudflare/next-on-pages and switching to the nextjs edge runtime. I am having issues with what I assume is nextjs internal caching / cloudflare caching my site. Some users are able to see the wrong data / sensitive data of other users I export the following config on all of my site pages:...
No description

Remove CF-added headers with fetch

As pictured. Is it possible to remove these? I'm running it from an API route with SvelteKit.
No description

Migrating Remix->React-React@7 given the Cloudflare Pages packages

The Remix->RR7 doesn't cover the Cloudflare Pages-specific bits. I noticed the Cloudflare CLI does not yet support React Router 7, so does anyone have a GitHub template I can reference for React Router 7 on Cloudflare Pages? Similar to https://github.com/remix-run/remix/tree/main/templates/cloudflare was for Remix. Thanks! cc @Jikyu who has similar question from November https://discord.com/channels/595317990191398933/1310637907689865257/1310637907689865257

DNS_PROBE_FINISHED_NXDOMAIN

Hello there, I've noticed that from time to time I may see the DNS_PROBE_FINISHED_NXDOMAIN error when creating subdomains. Sometimes I shall be able to make an instant connection to my webpages, other times I see this. Is this just something on cloudflares side? Thank you...

how to make a specific domain path fetch to a cloudflare page without using cloudflare workers?

So I can do the same thing with subdomains but wanted to know if its possible to do something like this but for something like /, for example instead of test.domain.com , I want domain.com/test without using cloudflare workers or some proxy or anything

Generated Pages Functions bundle size (69568508) is over the limit of 25.0 MiB

I am attempting to migrate to cloudflare pages using @Cloudflare/next-on-pages, i have gotten my build to work however it exceeds the 25mb limit. what can i do to reduce this?
No description

'An internal error occurred. Please retry your build. If this problem persists, contact Cloudflare'

Hi all, I'm trying to build Astro Micro, a blog template built on Astro but on every single build I get that error after a few minutes of not very much. I've checked the build commands and all other relevant info and they seem to all be fine, but I'm not really sure what this means. Any help on this would be greatly appreciated. Thanks!...
No description

Is it possible to clone without LFS with Git integration?

I have some snapshot test artifacts there but they are not needed for production build, just need to clone without LFS to save Github LFS bandwidth.

Where has purge everything gone for Pages?

I can seem to find Under Attack Mode and Purge Everything , which was previusly listed under Pages. UI keeps changing so much and shifting around.. The docs are also outdated as per where this feature is ?