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

Pages is production rdy solution?

i have static site on Vite i want to understand what product of cloud flare best match on scaling

Invalid prerender config for /posts/[slug]

Hi, Trying to get next-on-pages to build static pages where I am using generateStaticParams. For some reason it keeps creating invalid prerender config. I am on Next 14.1 and next-on-pages 1.13.12 if that makes a difference. I can't seem to find the render config files in the build folder to inspect them, so perhaps someone can help me find them? Thanks!...

Couldflare pages cannot visit through VPN

Couldflare pages cannot visit through VPN(Clash), when i turn off vpn could visit, how could i visit pages when VPN is on?
No description

Cloudflare Pages sites limit

hi, i want to know Cloudflare Pages sites limit. when it says in the website:Unlimited sites, but in docs it says Cloudflare Pages has a soft limit of 100 projects, which one is right?

Cloudflare pages doesn't build anymore

Hi, my cloudflare pages page (before-after-4.pages.dev) built successfully 18h ago. It used to build in around 4 minutes. Today it randomly stopped working, builds get stuck after the yarn install step and some have been for 30 minutes. I have tried opening a PR with the exact same state as yesterday's successful deploy, but it still doesn't build, so something must be broken inside cloudflare. ...
No description

Pages Functions - Can I use a newer version of Wrangler?

Pages functions use a older version of Wrangler, like Node, i can adjust using a var, can i force pages function to use a higher version of wrangler (which uses the latest workerd)

npm error A complete log of this run can be found in: /opt/buildhome/.npm/_logs/...

My application started to drop this error on any build, even retrying old deployments gets thesame error. This waas working a few days ago. I've changed nothing on the project settings or the code, simply tried to re-deploy preview and production builds that worked before and now I get this error. ```...

Enable Transformations on Cloudflare Pages Preview

Hello. I am deploying Next JS 14 applications to Cloudflare pages. I want to use image transformation via the following guide. I am able to get this working in production as my prodution builds have a zone attached to them. However, I am not able to see any previews of images in my preview deployments that simply run on pages.dev. I know you have to enable transformations for zones in order to use the transformations so I was wondering if I am missing something and if it is possible to view images on pages.dev accoutns that are not associated with a zone....

Newbie: Error 404 pixie proxy

Hello! Total newbie! Using cloudflare pages to host musicbylianne.com. It views properly in development. Domain registered at porkbun. I contacted porkbun and they said the error 404 (002) pixie proxy means that the DNS has not been set up correctly on cloudflare side….but I have no idea how to check it or fix it. It’s a simple static html site. I’m not sure even what info to provide to troubleshoot. Here are some pictures of the DNS setup on pages side. Please help! Thank you!
No description

25Mib bundle limit gatsby build

Can someone help? is there a way i can adjust the 25mb limit?
No description

css doesn't load on custom domain

https://hazama.pages.dev/ is linked to https://teamhazama.com/ But teamhazama domain doesn't load any css??...
No description

25MiB bundle size limit with CF Pages

Previously my Remix Vite app had a server bundle size of 1.7MiB and a client bundle size of 19MiB. I discovered that a dependency of @blocknote/core drastically increased the size by 12MiB, so I marked it as build.rollupOptions.external in my vite.config.ts, then am loading the scripts in my React component. However despite doing this I'm still getting the same error in Pages:...

How to deploy Next.js to Cloudflare

I have Next.js project. I am gonna deploy it to cloudflare. How can I do?...

Log aggregator service BetterStack (logtail) for a worker pages to collect logs is not working

I would like to collect logs from my pages services for a SSR tanstack start application. Locally everything is fine, I see my logs in BetterStack but my deployed app doesn't get any logs. Currently the tokens are committed into source so its not an env issue. The serverSideFn calls are done via tanstack RPC calls which don't have CF ctx to use waitUntil, however I am still always called logger.flush() to ensure logs are sent before completing call and yet I still don't get logs. I also have wor...

Deployment Failing: "Server is not a constructor"

Hello, I'm trying to deploy a svelte site that has worked fine for the past year or so, but recently I'm unable to deploy at all (old deployments that were succeeding are now failing when retrying) and am getting the following build logs: ``` 16:52:46.548 ✨ Success! Uploaded 41 files (388 already uploaded) (3.08 sec) 16:52:46.548
16:52:47.300 ✨ Upload complete!...

Site is randomly not responding any text

Hello, I have deployed my nuxt3 app as static site on pages and when I access it sometimes I get blank page and sometimes it works - even if I don't change anything. when I run this command multiple times I randomly get response sometimes sometimes nothing is responded even though I don't deploy any changes ```...

Could not upload the asset manifest.

Page: https://muaway--client--update-desktop-cloudflare-pages.pages.dev/ Deployment Id: 40915bd8-59f5-4a30-a748-7acad020853f Account Id: 8ba37cdcdc5cb1200d007c560c9f1242 09:04:05.766 ✨ Upload complete!...

Cannot perform I/O on behalf of a different request

I'm trying to use the postgres library with neon.tech but I get this error:
Error: Cannot perform I/O on behalf of a different request. I/O objects (such as streams, request/response bodies, and others) created in the context of one request handler cannot be accessed from a different request's handler. This is a limitation of Cloudflare Workers which allows us to improve overall performance. (I/O type: Writable)
Error: Cannot perform I/O on behalf of a different request. I/O objects (such as streams, request/response bodies, and others) created in the context of one request handler cannot be accessed from a different request's handler. This is a limitation of Cloudflare Workers which allows us to improve overall performance. (I/O type: Writable)
...

Uncaught Error: No such module "node:events".

I'm trying to deploy my SvelteKit app on Cloudflare using bun I'm using the crypto module (importing it with node:crypto) and this is my wrangler.json: ```...

Can Pages do rewrites (not redirects)

Hi. I'm trying Cloudflare Pages as an alternative to Firebase hosting for my existing site. I'm having a pretty positive experience so far, especially with the build-from-git integration. But I've come to an issue which seems to block the migration. Amongst some of the routes my static site uses I have ones that have a pattern such as /ws/<wsid>/viewtypexxx, which I would like to be rewritten as /ws/viewtypexxx.html. By "rewritten" I mean the httpd server serves the content of the latter when the client requests the former. The JS in my page parses the wsid value out of the location for itself so the right content is loaded dynamically after initial page load. I'm not finding any solution in docs, but it doesn't say clearly that it isn't supported either, and rewrite rules seem common enough these days in other hosting I've been uisng over the last couple of years. Are they supported?...