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

Account Blocked on Cloudflare Pages

Hello, I noticed yesterday my CF Pages weren't updated from the Github Integration app anymore. When trying to trigger a deployment via webhook + curl, I got the message : Your Cloudflare account has been blocked. I haven't received any warning emails. Could someone explain why and unblock my account ? 🙏 (Feel free to PM me)...

Azure AD integration with Cloudflare Page

I managed to have a user authentication in front of my Cloudflare Page using Cloudflare Functions, but the password is set as a Cloudflare Page environment variables. I am curiously if I am able to use Azure AD to authenticate users to access my Cloudflare Page. Thanks!...

Bind KV for Pages on Deploy

When I deploy my KV, especially as a new project through the Cloudflare Pages setup, is there a way to automatically bind a specific KV from the start instead of having to do it through the Functions Settings after it is created?

Supabase + Cloudflare pages?

I'm using Qwik and I want to know if it's possible to simply use Supabase without having to make a separate cloudflare worker for it? Thanks in advance!...

Global Environment Variables

Hey guys, I am migrating websites to cloudflare that utilise the same API keys, for example for a transactional email service. Is there a way to set an API key across multiple projects just like Netlify does with global environment variables? Without global environment variables if a key expires for any reason I need to go and set it on up to 50 separate websites. #functions (I wrote this in the functions channel but was unsure if I posted it in the correct location).

Error During Connection with GitHub

I have made my application in ReactJS. I was trying to make a pages Project in Cloudflare. If I upload my build folder directly it works, but that's not dynamic and update with every git push. I was able to connect my git project with it, however during the deployment it produces this error
No description

Is there an example of how to use Cloudflare Cron Triggers within Cloudflare Pages?

I want to set up an automated build for my website so it's updated once per 30 minutes. Based on documentation, I set up a trigger within my Cloudflare Pages project but it doesn't seem to show up at the UI. Should Cron Triggers work with Cloudflare Pages? Is there a complete example available somewhere? As a workaround, I could set up cron elsewhere and trigger the build but it feels a bit cleaner to have this logic in the same projects....

Builds are crashing

promptexecutionwebsite.pages.dev My builds are crashing. 11:35:26.675 Cloning repository......

Monthly user quota management / rate limiting

Hi! I want to build a SaaS product and have an API available to clients (requests allowed via domain names or API Key) and I want to have subscription plans with monthly requests limits. Is there any way to do this before the request hits the worker? (I want to prevent requests costs if a user already used his quota). Is therey any cost effective way to do this? Thank you!...

pages functions The server running locally is abnormal 500

I started pages functions locally through wrangler, which sends an http request and returns 500 to the local server when it runs, but it worked when I deployed it to a remote server. Does anyone know why? Local access function can not access the Internet, just like kv local operation can only access local kv,right?...

"EvalError: Code generation from strings disallowed for this context"

I use sveltekit for server side rendering. when I enter the speicific page.svelte that import "@moonmoonbrothers/flutterjs" , 500 error occured and log message is below The library that cause this problem is made by myself. I think there is no "eval" or "new Function" in my library. and my library's dependencies too (popmotion, color-rgba ...) is there any possibility that error can happen? ...

How to do client-side rewrites on statically exported Next.js site?

I have a statically exported Next.js site, meaning a single-page app built with next export and uploaded to CF pages. I've added a _redirects file with /:org/service_/* /:splat 200 to mimic Next.js rewrites (e.g. user goes to /123/service_/contact-us and lands on the /contact-us page....

Different requests get different files

Different client requesting the same file (sw.js) are getting different files. This is bad for PWAs, but browsers think there is a new version whenever the user opens the page Does anyone know why that might happen? I have more detail in a post: https://discord.com/channels/595317990191398933/789155108529111069/1185984798804672662...

Why does `npm create cloudflare svelte-app -- --framework=svelte` take forever on my system?

First, it's downloading the package or something, then it's checking for updates, even though it JUST downloaded a fresh copy, and then each step seems to take forever. "╭ Create an application with Cloudflare Step 1 of 3" — Sometimes doesn't take input! It's just like "╰ Continue with Svelte via npx [email protected] svelte-app" — but I press enter, y anything, it just won't work ...

Building with Python

so im new to cloudflare pages and stuff but basically I need help because my website runs off of python, so basically it would need to like install requirements.txt first then run python manage.py runserver, but the thing is i have 0 clue on how to execute this and i need help with it.

Cache on client site won't be cleared

Some of my friends have on a github repo that I host via pages still the old site, which is now more than 8 months old. I have the TTL on 5 Minutes now, I pressed clear all cache data, also turned on and off Developer mode for a while, but they do not get the new page. Deleting cookies on their end does also not give them the new site....

Do Service bindings and Queues work in Nextjs pages?

I have a Nextjs pages project that uses bindings. R2 works for me, but Queues and Service bindings do not. Is this expected?
No description

Migrating from Vercel, vercel.json alternative

Hello everyone, I am migrating my projects from Vercel but cant find a way to setup my project like I used to in vercel using a vercel.json that contains: ...

Gitlab pipelines - "created by"

Hi, I have a customer that has some high level attention to details and is complaining about the person assigned to "created by" column in Gitlab pipeline. Is there a way to change that? I have no idea how is this thing selected. The story of our repository and Cloudflare Pages connection is a little convoluted and goes like that: - I created the Cloudflare Pages + Gitlab connection from account A and using repository X - We moved repository X to repository Y (just changed the name basically) - Almost everything work except for deploy hooks which could not find the branches - Client requested that account B should be responsible for Gitlab connection so we removed the whole Pages project and started from scratch and connected it via account B to repository Y...