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

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...

Why would `process.env.EXAMPLE` be

Why would process.env.EXAMPLE be undefined in vite.config.ts only in cloudflare pages? It works locally, if I export EXAMPLE=hello and build, I can see hello in vite.config.ts. But in the Cloudflare Pages build, it's undefined. Would anyone know whats going on there 🤔️🙏🏼️...

If I want my pages app (Vite + React)

If I want my pages app (Vite + React) deployed to domain.com/route but then I also have pages functions eg functions/connect-to-db.js what route will that server function be accessible at?

or is there a better way Opening an

or is there a better way? Opening an issue on the wrangler github?

For anybody else that s interested after

For anybody else that's interested, after some further investigation, I can confirm that these docs are incorrect. If you deploy _routes.json , even when using advanced mode (_worker.js), you do not need to serve static assets using env.ASSETS.fetch -- it's done for you.

That’s what SvelteKit does Server Side

That’s what SvelteKit does, Server-Side Rendering

GitHub - cloudflare/pages-action

That's exactly what I'm researching now đź‘Ť https://github.com/cloudflare/pages-action/ One thing I can't figure out is how to define which branches are preview vs production when using direct upload rather than connecting it to Git -- seems the dashboard loses the ability to configure it....

I have a weird issue I m debugging I m

I have a weird issue I'm debugging. I'm setting data-theme in my next.js layout.tsx file with a fancy dangerouslySetInnerHTML, and it works locally but not when deployed on pages. My issue seems really similar to this persons: https://github.com/vercel/next.js/issues/39367 Any guidance on how to debug? Or a pointer in the docs all the possible configurations are? I don't have auto-minify enabled, I'm kind of lost about what else to check...

CF Pages and PlanetScale

Hey guys! I'm having trouble accessing PlanetScale from within Cloudflare Pages

Yeah it can with functions

Yeah it can with functions

https developers cloudflare com pages

https://developers.cloudflare.com/pages/framework-guides/deploy-a-qwik-site/#use-bindings-in-your-qwik-application The example in this section is incorrect, it should be: ```typescript export const useKVData = routeLoader$(({ platform }) => { // This is wrong:...

During the build process sorry if it

During the build process, sorry if it wasn't obvious before :p

Buffalo wild wings

Hi Everyone, as of this morning, Buffalo Wild Wings has joined Arby's and is now on Cloudflare Pages as of this morning. We've logged zero issues and it is snappier. Please feel free to ask questions if you have any and I will answer as much as I can....

Hi everyone we re exploring deploying

Hi everyone - we're exploring deploying our Remix app to CF Pages. We can't do the whole hook-up your repo and let CF do the magic because we're running a mono-repo with various projects in it, so we'd like to push it. I found somewhere that we can use wrangler, and wrangler is deploying the assets to the pages, but I must be missing something, because I see no workers defined and going to the preview URL gives me a 404.

Clerk sign out issue with next.js

Sometimes, cloudflare pages + next.js turns out to be quite bad. I am using clerk authenication and have a signout button. On click of signout, it should redirect to signin page, but cloudflare get stucked without any errors. On vercel same thing works fine. ...