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

does cloudflare pages cache workers?

Can I be sure that my backend functions are not cached? They return different data depending on the logged in user.

production page access control

so I have set up this thing (1st pic) on my CF page, and this will show me login code page (2nd pic). But it seems that this can be only enabled for preview deployments. Let's say i got a lot of preview deployments, like a.my-app.pages.dev...
No description

Transferring Cloudflare Pages projects to another account

Heya šŸ‘‹ I have two Cloudflare Pages projects, both on .pages.dev subdomain, that I no longer intend on maintaining and would like to pass it on to a trusted acquaintance so they can maintain it without my presence, is there any way I could possibly do this?...

Deployments keep failing āŒ

Deployments have been failing with no changes on our end. ``` [error] There was an error fetching the page: connect ETIMEDOUT 18.172.170.120:443 18:35:59.870 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1278:16)...

Cache isn't always hit

Following the example at https://developers.cloudflare.com/workers/examples/cache-api/ we implemented the Cache API on our Pages Function. Few changes were made, for example instead of s-maxage, Expires was used. The endpoint that uses the cache is only accessed by our app not web browsers. When looking at the console logs we figured that not every request hits the cache, it's roughly about a 50% hit rate. Is this the expected behavior or can the hit rate be improved somehow?

After deployment, can't access website

My page: https://svelte-cfpage.pages.dev/ My deployment ID: (I don't know how to get it) My account ID: 80a06574599d689bb015dc39791e5f22 I don't get any errors. My main problem is that I succcesfully deployed (built) my website from a GitHub repo. After this I don't know what I should do to be able to access my website....

How to use specific bundler version in V2?

I was excited to see the build cache feature, which needs the v2 build system enabled. In v1, the version of bundler is detected from the Gemfile.lock file, but in v2 this seems not to be the case. At https://developers.cloudflare.com/pages/platform/language-support-and-tools/ it shows "Corresponds with Ruby version" for Supported versions, but there aren't any instructions about configuring it....

Domains refuse to verify on Pages

I have a few domains that I want to link to one of my Pages projects. 4 of them work fine, the other 3 get stuck on verifying. I have pretty much idential CNAME and MX records on all of them but some of them just refuse to work even after fully removing and readding them to my account.

How to add npm install --progress=false --force in clouldflare page code deploy?

I have an angular project and planing to switch to pages from aws s3. I want to run --force instead of npm install --progress=false. Please help. ``` 2023-10-23T10:25:10.69542Z Cloning repository... 2023-10-23T10:25:12.467452Z From https://github.com/xxx/xxx...
No description

manifest.webmanifest is replaced on load

I have a svelekit app that should be a PWA. I use the cloudflare deploy script and it does upload the manifest.webmanifest page but if I try to retrieve it, I get a totally different result. A full HTM page loading some css and a script that eventually renders a 404. Why isn't it serving my file? How do I fix it?...

Uncaught Error: No such module "__STATIC_CONTENT_MANIFEST".

Getting this error in deployment while the pages site is working fine on local. ``` Error: Failed to publish your Function. Got error: Uncaught Error: No such module "__STATIC_CONTENT_MANIFEST". imported from "functionsWorker-0.3197352690414583.js"...
No description

unable to add Pages custom domain when it includes ü: (Code: 8000000)

Hi, I want to add the custom domain shop.züripeople.ch (shop.xn--zripeople-q9a.ch) to zpshop.pages.dev. I keep getting "An unknown error occurred. Contact your account team or Cloudflare support: https://cfl.re/3WgEyrH. (Code: 8000000) " I had no problem adding the stagefright.devforce.ch custom domain. The issue seems to be related to the ü character....

Socket server inside of Sveltekit Pages app

Hey guys I'm building a sveltekit app with CF Pages, I need to make a websocket server for handling some of my data, I was wondering if I must make it in a worker or if its possible to create the websocket server with like socket-io + express and just have it all directly on the web app on CF Pages

Build Error Next.js

I am getting the below error when trying to build my nextjs project using npx @cloudflare/next-on-pages@1 . This makes no sense because export const runtime = 'edge'; is set on my root layout which applies to every page in my entire repo. ``` āš”ļø ERROR: Failed to produce a Cloudflare Pages build from the project. āš”ļø ...

Rate limit per ip

Is it possible to rate limit an ip? Today an obscure bug in our app caused a single ip to spam requests.

vite site + pages local-dev

I am trying to run vite react site with worker, with local live-reloading dev-server. I set this up: ```json { scripts": {...

`pages.dev` is limited compared to custom domain

We have enabled CF Fonts & CF Image Resizing on a zone, which also is setup as a custom domain for our pages project. That works fine for the main production branch. However accessing the preview deployments at hash.pages.dev, both system do not work. What is the best way to make them work with the pages.dev urls, or get individual preview urls on the custom domain automatically?

Production Build is continuously failing

I write to express my rather perturbed observations regarding our deployments. Over the past day, they've been ceaselessly terminated due to an exceeding memory limit, despite my valiant efforts to amend our build parameters. It's rather puzzling that our most minor of CSS alterations could lead to such travesties, especially when just few days ago, all functioned seamlessly. Pray tell, has there been a shift in the underlying framework or system? If this vexing situation remains as is, might you suggest employing the 'wrangler' tool to manually upload to a preview branch?...

Cloudflare Page fails to build while importing a plugin that delivers static assets

Cloudflare Deployment Id: 685318ba-e9d9-4b34-a246-3ccbd5b61e1d The build pipeline I have setup there might seem a bit overkill but I've tried the same on a repo that only imports the published plugin and it fails the same way. Works via local wrangler build and deploy...

Setting up a static website generator with Cloudflare Pages

Hi, We are dev team working on a new feature on top of our platform for restaurant reservations management. We would like to start offering to our clients simple websites, which we would generate with a "restaurant website generator". ...