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

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 ?

I can't build on cloudflare. <stdin>:105:315210: ERROR: Expected "}"

when i use ali-oss in project, cloudflare build my project failed, it return this problem: <stdin>:105:315210: ERROR: Expected "}". is it vercel build problem?

Precompressed Gzip files not working

I have a Unity WebGL build I am attempting to host on Cloudflare. Unity compresses some of the files with gzip. I uploaded the build files into a GitHub repo and connected it to a Page. When viewing the page, I am told it could not interpret the compressed files. This is my _header file. ```/Build/*.data.gz Content-Encoding: gzip...

Image transform with SvelteKit

So, I put the images in the assets folder, but how do I use cloudflare's image transformation now? Say i have pic.jpg in assets/pic.jpg, visible on https://my-page.pages.dev/pic.jpg. doing https://my-page.pages.dev/cdn-cgi/image/width=80,quality=75/pic.jpg doesn't return anything... how is this supposed to work?...

Is there a build time limit?

i got this after 3 mins (builds locally) ``` 20:11:54.983 ā€‰ELIFECYCLEā€‰ Command failed with exit code 139. 20:11:55.006 Failed: Error while executing user command. Exited with error code: 139...

Cloudflare pages drag and drop doesn't seem to work

I have tried to upload a folder which has a single index.html which works on my local machine and the folder only contains that index.html but when I upload that to cloudflare , It does create a cloudflare pages but I am not sure how to access it , simply going to the cloudflare link doesn't work

JS.next on pages problems.

Hi Cloudflare Discord, I have been working on a next.js webapp and trying to get it deployed to Cloudflare, but I am having some issues getting my D1 database hooked up and my functions recognized. This is my first time deploying to Cloudflare pages and my first Next.JS app, so I am considering just starting over with a demo project to get things working, but I thought I would ask for some help here first in case I am close to getting it functional. I have followed the Next.JS guide on the Cloudflare docs, but no luck. I am probably just missing something super obvious. ...
No description