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

Show Commit SHA on page

How can I grab the commit SHA for each new commit on github and display it on my 11ty page? following https://alexcarpenter.me/

Hugo Static Site missing images once deployed to Cloudflare Pages

Hi everyone, Thank you for looking at this issue. I made a simple Hugo website locally, git pushed to GitHub, and deployed to Cloudflare Pages (https://williamsrestore.com/). I removed the base_url in hugo.toml and used the build commands of "hugo -b $CF_PAGES_URL" in Cloudflare pages. I attached an image showing that Cloudflare Pages uploaded the images (work1-4.jpg) but when I visit https://williamsrestore.com, the images are broken/not loading at the bottom of the website. ...

"No deployment available" when deploying from Github Actions

My setup is pretty straightforward. I have a Remix app with a simple build step (remix vite:build). When I run the following commands locally it deploys to Cloudflare successfully. ```...

Dynamically import incompatible packages for dev only

I am currently dynamically importing a package that is incompatible in workers just during development, but the worker still won't compile when I try deploying since it still tries to get those packages. I am wondering how I can avoid that and truly just have that dependency in local development? I guess something is hoisting my dynamic import. Maybe there's a technique to make cloudflare ignore it? ``` let driver: Driver; if (NODE_ENV === 'development') {...

Can you forward certain requests from a Cloudflare Pages site to a different domain?

Hello! I'm looking to see if I could deploy a site using PayloadCMS with Cloudflare Pages. They have a backend accessible through routes starting with /api. Could I host my static frontend on Cloudfare Pages, but forward (or perhaps "transform" is the right word) all requests to /api to a server I would host elsewhere? In order to get cookies to work correctly, the site would have to appear to the web browser like it was on the same domain. 😕 ...

Set different domain for public domain and fucntions API

I have a site on cloudflare pages using pages functions. the functions also acts like an rest Api validating through API or Sessions. My question now is how I can make the domain on the public for cloudflare pages ...

Cloudflare HTML Email Form

Hello. I've created a custom website for a small business (more like customized as I used a template from HTML5UP) and I created an email form to forward to a gmail address using PHP. I tested everything in my workstation using XAMPP and it works fine and everything is good to go. But apparently, cloudflare doesn't use PHP and I have been researching on how to forward the email from the HTML form to the gmal. I am using cloudflare as a host and godaddy domain. Here is the test page just in case anybody is wondering: https://bbybloom.pages.dev/# I have not set up the domain from godaddy either but I did go through the process of registering it and added the namespaces in the godaddy domain. I am mostly a backend developer using SQL but I understand how to create websites a little bit and that's how I am able to fully customize the html5up template. Thank you for any help and guidance! ...

Does .me domain not work in Cloudflare pages

I am using the same configurations for Cloudflare Pages with a .com domain. However, when I tried to apply them to a .me domain, I encountered a 'Connection timed out Error code 522' while attempting to open the website. I get the domain from namecheap...
No description

404 new React App

Hi Everyone, I usually use Netlify to host a simple static page but wanted to give Cloudflare Pages a try. When I deploy, it looks like a "success" in the build logs but when I visit the dev link https://00b12475.mooovers-web.pages.dev I get a 404.

Trying to host a NextJS project on Cloudflare. Error: Output directory "out" not found.

Hi all, I've managed to host some non-NextJS projects fine, but this one is getting me a little stuck. I'm sure it's an easy fix but I can't quite seem to figure it out :/ ```js...
No description

Production Issue

I have made a small change in code in GitHub, But it's only being updated in my aliase domain given by Cloudflare. Not my original domain. Why so? In the screenshot attached the change is only seen in ddx.pages.dev but not on ddxnotes.xyz...
No description

wrangler preview output is not the same as live

Hello all, finally I got my astro project buildable. Using wrangler pages dev ./dist my website looks as expected. ...
No description

Downloading data before building pages (SSG/SSR)

I have the use case that I'm experimenting building a Cloudflare Pages project using Astro. It will using a dynamic GraphQL endpoint which queries data from a D1 database. However it will also generate static pages (SSG). ...

Request failed with status code 408 (Request Timeout)

Failed upload sourcemap for [dist/assets/SecondaryButton-e.js.map]: Request failed with status code 408 (Request Timeout) Please help to find a reason, why that error message started to appear in Gitlab CI/CD pipelines while uploading sourcemaps to the Cloudflare Pages....

VPN tunnel warp 1.1.1.1 problem

I need help ! I can't activate my VPN. When I want to activate it, the following words appear: Your tunnel configuration is invalid . And underneath that information it says: Reset all your settings. I want help with this problem please CloudFlare.

how to setup custom 404 on static site(vanilla, no framework)?

i want to deploy a static site using regular html, css and js, built with vite(so not totally vanilla) but its a multipage static app, that will clearly let the server know if an undefined pageroute is accessed. I want to use a custom 404 page for these cases, I couldn't find instructions to do this. I found this blog post https://www.mickaelvieira.com/blog/2020/01/27/custom-404-page-with-cloudflare-workers.html where he explains that you can kinda hack it with workers. but is this really my only option? Idk, i'm kinda hoping this can just be configured in the project's settings or something....

How to solve: Got error: Uncaught ReferenceError: global is not defined

Hello, my deployment to cloudflare pages for my Nuxt app fails with the following error: 23:22:22.820 ✨ Upload complete!...

Is it possible to run a docker compose environment on a cf page?

The subject already describes my question, therefore a precisely description's pointless.

How to resolve `node:crypto` error during Sveltekit deploy

```cmd Run npm run preview to preview your production build locally. 12:28:16.327
12:28:16.327 > Using @sveltejs/adapter-cloudflare 12:28:16.697 ✔ done...