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

hey guys! is there a good example

hey guys! is there a good example repository where i can find an example of an R2 object being used to set as source for a media element? I'm wondering about the wire up, I'm close but not exactly there would be awesome, thanks...

Just to confirm, are you saying that the

Just to confirm, are you saying that the binding doesn't exist, or that it isn't returning an object?

Build configuration · Cloudflare Pages d...

Can you access environment variables during runtime in Cloudflare Pages? This only refers to environment variables for build time https://developers.cloudflare.com/pages/configuration/build-configuration/#environment-variables...

pelican build integration is failing

pelican build integration is failing because the pelican executable is either not installed or not on the PATH at build time

I will check that out. Thank you! Do you

I will check that out. Thank you! Do you mind me asking what tech stack you use? Do you try to use as much of the Cloudflare platform as possible (e.g. D1, Workers KV, R2) or do you use similar services from other companies?

Does anyone know if it's possible to

Does anyone know if it's possible to host preview branch on a specific subdomain?

Is it possible to integrate Vitest for

Is it possible to integrate Vitest for Cloudflare Pages?

Why not point the domain there directly

Why not point the domain there directly? What should the custom domain be used for if it doesn't point there?

> What is the actual way to setup this

What is the actual way to setup this redirect?
Either will work, Page Rules will eventually be going away though. It'll be announced when there is and there will be plenty of time, but yea one day your options will only be Bulk Redirects/Dynamic Redirects, not Page Rules
Usually this is fairly straightfoward but I think the CNAME flattening is making it a bit harder for me to understand
I don't get where CNAME flattening plays into this. Generally not something you need to worry about, espec not when everything is proxied. Your apex custom domain cname for pages is using CNAME flattening, but it doesn't change anything with this redirect....

Is it possible to purge the cache used for asset retention

Is it possible to purge the cache used for asset retention (or at least adjust the TTL)? I've noticed that some users can get an old version of a .json file i import into my next.js project which is not ideal for the site I'm running. Thanks! https://developers.cloudflare.com/pages/configuration/serving-pages/#asset-retention

Are Cloudflare Pages Plugins supported

Are Cloudflare Pages Plugins supported with Astro? Does anyone know?

Is nodejs 12 still supposed to work on

Is nodejs 12 still supposed to work on the v2 pages build system? I got a 4 year old repo I'm trying to move over to pages and get building. It works on the v1 build system but selecting v2 it does some weird complaining about node 12 is already installed and then errors out. ```cmd Using v2 root directory strategy...

Pages `bun install` by default? Why.

Hi all - I was wondering if it may be worth discussing issues with Cloudflare Pages running bun install --frozen-lockfile by default, without the ability to remove it or even modify the command. I've currently got a P1 ticket filed with support, because the majority of our builds just fail, due to timing out issues.
Failed: build exceeded the time limit and was terminated. Refer to https://developers.cloudflare.com/pages/platform/limits/#builds for build limits
This occurs almost consistently most recently and it begs the question - why is a build command running that the developer has not specified? It's impossible to debug (such as appending the --verbose flag) because we have no choice in the matter. This seems like a questionable technical decision?...

Hey there, anyone a clue how to track

Hey there, anyone a clue how to track down why my Cloudflare pages are so abysmally slow? (really!)

Would it be possible to have the runtime

Would it be possible to have the runtime store only the latest N WebSockets, and then GC the rest?

jose works! Thanks @Hello, I’m Alastair!

jose works! Thanks @hellothereimalastair Another question: I'm trying to use the Firebase Web Client SDK (Lite), however, during authentication, I get a auth/network-request-failed error. ...

Our Pages deployments recently started

Our Pages deployments recently started failing, how can I see why? We didn't change anything on our side.
No description

Hi Team, pages build are not getting

Hi Team, pages build are not getting published when when there is AI binding. (After removing Workers AI Bindings, it succeeded) ```powershell .... 17:25:14.383 Deploying your site to Cloudflare's global network......

Hello I have an issue setting up

Hello I have an issue setting up Cloudflare pages, my setup is as follow: I have two Cloudflare accounts, (account A) holds the pages deployment, and (account B) has my domain (DNS records). I have also cross-account setup, such that adding custom domain in pages on account A, will auto add DNS record in account B. everything goes smoothly, when I access my website from pages deployment URL, but when I access from custom domain URL, I get ERR_SSL_VERSION_OR_CIPHER_MISMATCH I have been struggling for many days, any help is much appreciated...

Does anyone know why file hashes are

Does anyone know why file hashes are different for different requests? It seems like different clients get different builds. For example, visiting this page https://v2.talkdash.orth.uk/sw.js and hard refreshing (command shift R) will often, but not always give different generated strings. I'm working on a PWA, browsers will think there's a PWA update, and updates the service worker and my app prompts the user (bug will immediately be visible on https://v2.talkdash.orth.uk/) I have turned off cloudflare web analytics and redeployed to make sure it's not beacon.js causing issues...