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

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

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

Hi I have weird issue We are using

Hi, I have weird issue. We are using Cloudflare Pages, they are deployed from CI. We use preview domain aswell custom domains in our root domain. We have zero trust set for preview domain set and disabled it for dev and rc subdomains in our root domain. For some reason users are still redirected to preview Application to do Zero Trust login.

I have no idea what they do but it s

I have no idea what they do but it's probably the most common framework it happens with

Document how to use `adapter-cloudflare`...

https://github.com/sveltejs/kit/issues/2966 I've been reading through this and wondered if there was a solution yet? As I'm working on a SvelteKit pages project, that's using SSR (using a service binding) and naturally platform.env is undefined in dev... which makes local testing really difficult. Does anyone have a good solution (there are some in the issue but they are all quite hacky)

No this is something the Hugo folks have

No, this is something the Hugo folks have been trying to fix for a couple of years now but haven’t yet arrived at a solution that satisfies all their requirements. That’s why I was so excited about v2 including the Embedded Dart Sass binary. With the changes announced in the blog post, having the regular Dart Sass binary in the PATH now accomplishes the same thing. It’s just a matter of making sure to use that binary rather than the now-archived Embedded Dart Sass binary. @johndotawesome the difference between Hugo and Hugo Extended where Sass is concerned is that Hugo Extended supports the use of Sass, while “regular” Hugo (an oddity of the Hugo build process for a very small number of OS versions) does not. At one time, Hugo Extended did come with the old/deprecated Libsass, but it’s never included Embedded Dart Sass....

UX feedback bug When pasting an

UX feedback/bug: When pasting an environment variable in the format FOO="bar" you have to "blur" the input field before it is actually inserted into the form field, rather than a keydown/paste event firing it. This makes it feel broken when putting in env vars into Pages