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

How to setup a custom domain for a develop branch?

I'm trying to set a custom domain on the development branch, so I have create a CNAME record for develop.gab-servizi.pages.dev and it is propagated yet. But when I reach the website via the custom domain (test.gabservizi.it) it is propagated to the master branch instead the develop. If I navigate to develop.gab-servizi.pages.dev the content shown is from the develop branch as it has to....

My site blocked.

My develop site is being blocked by cloudflare, someone flagged it as phishing and I have contacted cloudflare about it and they have not removed the phishing message. Now it is returning 403. I am not sure what I need to do to get this removed or who else to contact....

screen gets stuck and cannot be verified PLS HELP

It stays on this screen and the verification section does not appear. I have been having this problem for a long time, please help me.

Can I use nextjs' force-cache on the Cloudflare page?

page: liking-game.pages.dev account id: 607b646393c3283f78752e279619466e Problems: ...

Page Shield.

Hi everyone, I would appreciate some help. I am in the middle of a POC for Page Shield. I can see the events in Page Shield, but I don't understand how to block them....

is this email legit?

Recived this email not sure if it actually came from cloudflare, (Domain is on hostinger and has been working for over a month, the name servers have not been changed just double checked

Dependencies version issue

I am using PNPM for dependencies managment, i have "nuxt": "^3.8.2" in my package.json and lock file. When building my app in pages, why is Pages using the latest version (nuxt 3.14.1592) ?...

I'm trying to request data from a site using cloudflare workers but I'm getting 406 Error.

I'm trying to request data from a site using cloudflare workers but I'm getting 406 Error.

deleted repository and then created again and now deployments are broken

I had a repository setup for my pages site, and then deleted by accident (still not sure how that happend). So I recreated the repo on github again with the exact same name... but now I can't seem to re-connect it. I've followed all the docs for removing and installing the cloudflare app on my github, but to no avail. Is there any way I can reconnect a project that is broken?...

Deploy step fails with "internal error occured", rollback did not resolve

I'm using Astro with Cloudflare Pages and until this morning my build/deploy steps were working fine. Between then and now I set up a worker (that I was going to test) and made some other small changes. The worker is still in place but everything that was changed in my website repo has been rolled back. The version I'm trying to deploy is the last known good version. The error I get at the end is: ```09:51:25.972 ✨ Compiled Worker successfully...

using legacy peer deps for node project with react 19 and non compatible peer deps

It seems like whatever I do, the build system seems to do a npm clean-install whether I specify a custom build command or not beforehand which fails my build. any fix to this?

Sink project with Cloudflare?

Anyone use this project on CF:https://github.com/ccbikai/Sink I purchased a domain to use with it and it seems something wrong with the deployment yet I followed all the steps?...

How are we supposed to use env vars outside of request contexts - e.g. When setting a config value?

I've found myself stumped on the stupidest thing. I'm using a third party integration with Astro, it takes config within the astro.config.mjs file like so: ```javascript kinde({ clientId: process.env.KINDE_MANAGEMENT_CLIENT_ID,...

Build not working, deleting the project not working

Hi, we have some Cloudflare pages connected to Gitlab managed by multiple accounts. We had a situation a couple of times the builds are failing directly in the first stage "Initializing build environment" with no error details shown. I suspect it is because one of our other users/accounts creates a new project with its own Gitlab connection. I suspect this because it started around this time. A few months ago we also had this problem and 'solved' it by deleting the projects and create them again...

my friend needs help

we don't understand what's happening and he's tried this on 2 different browsers, can someone please recommend anything

Cloudflare Pages caching two versions of website

Hi, I'm deploying an Angular website on cloudflare pages and it seems to be caching two different versions of my website. When you head to the root URL for the website, it's a really old cached or prerendered version of the actual website, and navigating to another page and going back loads the new page with the new code. I've cleared my cloudflare cache & build cache multiple times and redeployed the new code multiple times also; the issue persists. Anyone know how to fix this issue? No build errors and the website deploys successfully every time....

Use PHP 8 to build static website on pages

Hello! I'm trying to host a static website on Pages. It is generated using Statamic, which is PHP based, so I would need it on the build image. However, it seems the v1 image is limited to PHP 7 and the v2 image doesn't support PHP at all. Am I getting that right? https://developers.cloudflare.com/pages/configuration/build-image/#supported-languages-and-tools...

Ruby 3.3.6 availability

I'm trying out Cloudflare Pages for a Jekyll site that I currently have on Github Pages. When I deploy my site (which only has ruby in its .tool-versions file), I see the following output in the (failed) build logs: ```...

How to update the wrangler version from 3.76 to 3.91.0 on pages deploy

I've upgraded to wrangler@^3.91.0 in devDependencies of package.json and replaced wrangler.toml with the newly supported wrangler.json config file. This works perfectly in local development environment. However when auto-deploying to pages preview, wrangler 3.76.0 appears to called by default in the automated build. Since 3.76.0 has no awareness of wrangler.json, none of the bindings defined in the NEW wrangler.json config file are updated. Where is the default wrangler version for pages auto-deployment defined?...

Internal Server Error on cloudflare preview pages

Hi there im getting a Internal Server Error on preview deployments. The build its okey and everything looks good but i'm still getting this error. Also its very difficult to debug because i dont have logs and nothing. Any idea of what its going on ? or any help you can give me? Thanks...