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

Functions prod vs dev

So i was following thie pages-functions guide: https://developers.cloudflare.com/pages/functions/get-started/ seems easy.. put in /functions folder and you good to go. so for the sake of checking its working copied the function from the guide....

Automatic Cache Purge

Is there a way of making a rule that when a update deployment is made on Cloudflare Pages that the Cache is automatically purge

Help needed

So I have 2 people who have a Minecraft server one has port 25565 but another 1063 but the default MC port is 25565 how do I fix this because it has been added to Cloudflare in the DNS records only pterodatyl is stubborn and doesn't want to make a new allocation because it has to be glacial.epicnode.nl:25565

Remix SSR build on Github Actions

I moved my builds to github actions for caching. The project is a monorepo with multiple remix packages, two are in SPA mode, and deploy fine, since there is no build/server. One of the packages is in SSR mode, and returns a 404 since the functions directory is not built into a worker by the remix vite:build command, understandably....

New builds result in NextJS crash

Recently I updated a JSON file on my website's static assets folder, and today I noticed my site is showing a "Internal Server Error" screen Considering it is a minimal screen and not the cloudflare one, and cloudflare not showing any error rates on the metrics screen I imagine it is NextJS, I tried rebuilding on top of the latest commit and an old one that was working and both resulted on the same error, for now I have rolled back I am using an old successful build I have not changed any setting or option in the page since the successful deployment...

Cache Errors rendering site unavailable

Occasionally, with no intervention - our apps will cache incorrectly causing the app to be unavailable on Pages. We mostly see this as pages that should be returning javascript return the homepage instead. To get around it, we usually run a "Retry deployment" which to my understanding invalidates the existing cache on the affected pages. I am certain this is not a oneoff, this has happened twice to the primary subject of this report but also my personal website which does not use Next.js. We are playlessgames.pages.dev...

Global 404 not working on pages.

My understanding of 404's on cloudflare pages is that you set up your 404.shtml/html in the root of your project, and cloudflare designates that as a global route on the backend with no other work needed to serve 404's. So say I only have an index.html on example.com, and I go to example.com/fart, it will give me a 404 just fine. I have noticed an issue with multiple projects now, where the 404 at the root will not apply to directories on my pages projects, so if I go to example.com/fart/index.html (which doesnt exist) ill get a broken 404 that doesnt fully load with the assets/etc ive defined in the 404 at the root. Ive tried clearing cache, ive manually set up the 404 in that directory and it starts working after purging the cache, so is that the way I have to do things? I have to have a 404 set up per web page directory??...

Creating Pages projects based on GitLab failing with generic error message

This is my account id: 847e34e5bfebe477b140713ecad9fe01 and I'm trying to create a pages project by connecting it to a GitLab hosted project but I'm getting following message on the UI: An unknown error occurred. Please try again later. and by investigating the call, the reply contains this body: `{...

Can I use pages.dev for BlueSky?

I see some people on Bluesky use github.io domain on their username handles. Is it possible to use pages.dev domain for username handle in Bluesky?

"Error: [unenv] crypto.createCipheriv is not implemented yet" when using Auth.js

Using GitHub OAuth with Auth.js and SvelteKit, I get this error when an user clicks "Sign in on GitHub":
[auth][error] Error: [unenv] crypto.createCipheriv is not implemented yet!
[auth][error] Error: [unenv] crypto.createCipheriv is not implemented yet!
Is there any way around this? (except moving to another platform :/)...

Increasing limits on pages for static site generation

Hello! We are building and deploying websites using Cloudflare Pages. The sites are built with Astro (https://astro.build/) and leverage static site generation to create HTML files for the site. Our goal is to generate most or all of the pages of the site, and only dynamically generate select pages with more dynamic components. This site is just a blog, and the page content is generally only housed in our CMS, so if we have to dynamically generate the pages, we could. However, we're looking to migrate an additional ~30 websites into this setup, and many of them have 2 or 3 different systems we will be pulling content from in order to generate the page, so it will be important for us to be able to build static HTML so we don't have multiple backend dependencies to serve a page response. We are running into the limit on files of 20,000 listed here: https://developers.cloudflare.com/pages/platform/limits/. We initially submitted the form to request an increase a couple weeks ago and still haven't heard back. Before we commit to this tech stack for our website hosting, I want to make sure we're not going to hit this limitation on our other websites as well. ...

Support bun new text-based lockfile

Since bun version 1.1.39, it supports new text-based lock file inplace of old binary lockfile. - https://bun.sh/blog/bun-v1.1.39#bun-lock-is-bun-s-new-text-based-lockfile - https://bun.sh/blog/bun-lock-text-lockfile In my repo, I replaced bun.lockb file with bun.lock...

cache/webpack/server-production/0.pack too big but can't see why

Hello, apologies for the perhaps silly question, but I've looked around and gone in circles with claude with no success. I have a very simply nextjs webapp that I want to deploy on pages. When I run bundle analyze, it gives me about 1MB for client, 3MB for nodejs, and 250KB for edge. it runs perfect locally. And yet when I try and build, it gets to the very last step and says: 23:11:46.407 ✘ [ERROR] Error: Pages only supports files up to 25 MiB in size 23:11:46.407
23:11:46.407 cache/webpack/client-production/0.pack is 42.3 MiB in size...

SvelteKit minimal template doesn't build at Cloudflare but works fine on my machine

Hello! I'm getting the following error when building a SvelteKit minimal app without any changes: ``` 00:02:14.492 Installing project dependencies: npm clean-install --progress=false 00:02:15.393 npm error code EUSAGE...

Custom domain problem in cloudflare pages

I deployed a react with vite project on cloudflare pages and its working fine on pages.dev domain, here's the link (https://portfoliov1-dhw.pages.dev/). Then I connected the pages website to my domain (anukiranghosh.com), I followed the instructions and changed the nameservers to that of cloudflare provided ones on godaddy dns. I'm pretty sure that I have followed all the steps but something went wrong, I'm getting "522 Connection Timed Out" error whenever I'm visiting the custom domain on my browser. Its been two days, but I'm still getting the same error. Now its even showing site is not secure. Can anyone help me troubleshoot this error? If you need more details, please feel free to ask. Thank you in advance....

Is FaunaDB integration supported for Pages?

I noticed it's missing from the Integrations list. Given the edge runtime node compat limitations with the Mongo node driver, I'm looking for MongoDB alternatives, and Fauna seems like a good alternative; I'm open to suggestions. Thanks!

Site works fine under cloudflare's domain, but my own (which is under cloudflare's dns stuff) breaks

I have a site at https://new-site-ahw.pages.dev/ with some basic html, css and js which works fine at the link there. However, when cloudflare pages uploads to my domain (whih I bought and run under cloudflare) https://new.isophes.com the html breaks. ...
No description

R2 so slow when download file

I moved from S3 to R2 for my application. I use APAC region. And my users are almost in Vietnam. I don't know why but users reported to me that they download file with very slow speed. I tried to enable Cache, but nothing better my account id: 47f47fdf68786c80746c414143a6f4e0 ...

How to implement nonce in _headers file?

I am using pages with marko, how could I implement nonce from the _headers file?

WEBSITE HELP ( HTML )

• My page is kdsirclasses.pages.dev So i indexed my page recently on google but when i search my page on google it's showing cloudflare on top of site so is there a way to remove that? From there im using html......
No description
Next