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

Deploying Jekyll site Error

Hi I'm trying to deploy a jekyll website in cloudflare pages but I'm getting this error. I already set the environmental variables: ==== Build settings ==== Build command: jekyll build...

Website login-> google/oauth2 -> Error 524 (Host Error)

Hello I need some clarification regarding this error, my website is working fine before, but just last fridat it seems it will took too long to received or response to the google auth when i try to login my gmail account. I already contacted the hosting provider but there is no problem on there side, i also tried to login on the non-proxied website it can login with no problem but on the proxied site it loads very long after that it shows Error 524. Thank you
No description

Page Rules for HTTP on specific subdomain causes TOO_MANY_REDIRECTS

Whenever I setup cloudflare pages and then make a page rule that makes my cloudflare pages site http compatible when i use https on all my other stuff causes a TOO_MANY_REDIRECTS error. Does anyone know how to fix this so shop.sevenworks.eu.org is http and my other stuff is https? Thanks.
No description

_headers file issues

Hi, I created a question here: https://community.cloudflare.com/t/cloudflare-pages-headers-file-does-not-work/602007 but the main question is: why is my _headers file not working when trying to set the Content-Encoding header? Thanks!...

different behaviour with same deployments | 522 error on cloudflare pages

i've setup two cloudflare pages apps, and with exact same deployments (i've not touched settings in the dashboard), one of them gives error while other is working as it should. (redacted domain names, if possible i'd rather not share them publicly) any idea what might be wrong? ...

How CF Pages function get request.host referer

I have created a topic about How can I get request.host referer from CF Pages function https://community.cloudflare.com/t/how-cf-pages-function-get-request-host-referer/601736 I aim to identify the domain and the calling page URL, as there are multiple domains linking to this Page project. Utilizing these two parameters is essential for fetching distinct data based on the origin. ...

[Astro SSG] Why i am redirected after a form submit

Hello, When i submit my form i don't know why i am redirected to the MY_URL.com/api/submit page. I am using Astro (SSG) (V 3.3.4) with Pages (V 8.0.0) and Wrangler (V 3.22.4)...
No description

Making multiple applications with one repo

I'm using a monorepo for a project, and inside that monorepo are two different websites. I want to deploy both of them with Pages, but the dashboard only allows one application per repo. Is it possible to create multiple applications based on one repo somehow?

version one, emacs installation error on cloudflare pages

I am having an issue with cloudflare not being able to use emacs to publish my org files this is my log...

Sveltekit on Cloudflare Pages Worker not working switching from Vercel

I get strange error when i replace following in svelte.config.js: import adapter from '@sveltejs/adapter-vercel';...

R2 Explorer keeps giving out TypeErrors

i'm using GitHub project called R2 Explorer (https://github.com/G4brym/R2-Explorer) which is a Google Drive like GUI for your R2. i ran the command npm create r2-explorer@latest in CMD, named my folder the same name as my R2, deployed it, and it keeps saying "Waiting for deployment to become available" in CMD. i ran the Real-time logs thing on the brand new Cloudflare worker it created, and it keeps spitting out a whole string. ...

Could not reach Cloud Firestore backend.

I can't seem to get firestore to work. I have double checked that my secrets are all correct. ```js // /pages/api/players import { firestore } from "../../lib/firebase.js"...

Progressive Web App (PWA) in cloudflare pages is possible?

Hi guys, I'm trying to deploy a nuxt SPA with PWA in cloudflare pages but every article I find on the internet is relating PWA with cloudflare workers (not pages). I'm assuming that the only way to deploy a PWA is by using workers, this is weird because I can serve PWA apps with nginx with no server (only static files)....

Perform fetch request through proxy

I have a VPS which is a proxy server and I would like to connect to it from Pages Functions. I'm looking for a way to perform a fetch request using my http proxy.

Deployment Failed for Pages app, can't find errors

Hi, I have a Pages application that uses Functions with an AI binding. The project was created with C3 and is a Vue.js project. I successfully deployed the app to production three weeks ago, but today it keeps failing to deploy. It works ok in dev mode (npm run pages:dev)....

nodejs_compat still not working as documented

I added the nodejs_compat flag in the functions settings both envs, but builds still fail. The issue comes from authjs, which uses those node libraries. I really want to stay with cloudflare over vercel https://developers.cloudflare.com/workers/runtime-apis/nodejs/#enable-nodejs-from-the-cloudflare-dashboard suggests that those nodejs packages should work, yet they aren't. any help? ...

Pages is installing bun 1.0.1

The latest version is 1.0.21. This causes my build to fail. Account ID: b7624c46ee3377d0b12e2bf893c00685...

ReferenceError: crypto is not defined

I have a javascript file which makes use of crypto. This file is used by both my Cloudflare Pages Functions and my Node preinstall script when running npm i. Locally, on my PC, both run fine but on Cloudflare Pages the preinstall script crashes with ReferenceError: crypto is not defined. If I add
import * as crypto from 'crypto';
import * as crypto from 'crypto';
at the top of the file, the preinstall step will run fine but the Pages Function will fail to build with ```The package "crypto" wasn't found on the file system b...

Which object holds environment variables (Nuxt)

I just configured & deployed a nuxt app to be deployed to cloudflare pages. Environment variables are all setup, but I can't seem to access them, like to setup my drizzle DB connexion : (I'm using t3-env to valdiate & access my env vars : https://env.t3.gg/) ```ts...