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

WAF Price and setting up

Hello all, i am trying to find more information on Cloudflare WAF, whether it is paid or free, and how to set it up. all i end up finding is some general notes but thats it. I have a website setup on hetzner (laravel, very simple app) and i end up with lots of trafic from bots. Looked at Shieldon package but not sure whether it is a propper solution. Can anyone point me in the right direction on pricing, how to set it up etc? I've read in some articles that the WAF is free and part of the free p...

Exact same commit hash is building on develop-2 but not develop

develop is failing due to Segmentation fault failing build id 9d20d57e-4b2b-45b0-985b-4ccb98fb9751 working build id 1adf52f7-884e-4158-a798-f46163b6b9a3 100% same commit hash...

Having 522 error with DNS hosting of Pages application?

Hello, recently for a client I have been hitting some 1000 errors with DNS but am resolving theses with a support case .. this lead me to realize that my personal website (which is set up very similarly, React SPA CI/CD linked to my github repo, sitting on a custom domain) has been hitting errors as well, albiet different. My Pages project is responding to deivces with a 522 HTTP error and I cannot determine why? This set up has been working for a few months and recently "went offline" with these issues. This occurs any time I am attempt to hit the root URL from the address bar of a browser, and also seems to result when accessed through search results as well). Places where the website is cached already respond just fine, which makes testing this far trickier as well. My DNS setup is as is advised, CNAME record pointing to the pages domain of the project, another cname for www pointing to the root domain .. all A records seemed to be auto generated and i did not add them, along with some basic CNAME records for FTP, mail, etc. None of these CNAME records are being used by the project. Any guidance or assistance or insight on this issue would be greatly appreciated! Thank you in advance! Can share DNS records privately if you're able to help me troubleshoot...

How to disable Speed Brain?

I have Speed Brain disabled for my Cloudflare Pages website in the dashboard's Speed -> Optimization -> Content Optimization setting. Yet I still see requests made to /cdn-cgi/speculation with every pageview. And the speculation-rules header set on HTTP requests....

workers deployment v2 produces an [nuxt] instance unavailable, works when build is compiled locally

I have a weird issue with the pages deployment. When i compile localhost, and then use wrangler pages deploy, everything is fine. When i use either the v2 github pull function (autodeploy) or a github action (cloudflare/pages-action@v1.5.0) then the Nuxt server constantly produces a [nuxt] instance unavailable i.e.: https://1615b361.app-hub.pages.dev/ (deployed via local worker, no issues) https://ff5d1bbe.app-hub.pages.dev/ ( deployed via github action)...

[unenv] crypto.createhash is not implemented yet!

My project runs normally in development mode, but I encounter an error when previewing with Wrangler or deploying the project to Cloudflare Pages. Error: [unenv] crypto.createHash is not implemented yet! I have already configured compatibility_flags = ["nodejs_compat_v2"] in wrangler.toml, but the issue persists. Please help me, thank you....

Postgres timesout on cloudflare:

I have a PG db at digital ocean, it works perfectly in my local machine, however when deployed on cf I get: write CONNECT_TIMEOUT localhost:5432 which is weird as the port is not even 5432. This is a reprodution: https://github.com/cosbgn/pg-cloudflare/blob/main/server/api/test.js This is where it times out: https://pg-cloudflare.pages.dev/api/test...

DNS CLOUDFLARE redirect to the another IP address.

Hi Guys, I don't know why when I ping my domain i'm redirect to the another ip address?...

Error cache

hello im getting this error, someone knows whats happend? ```js import { auth } from '@/auth' import { getUser } from '@/client/services/user.service' import Home from '@/components/pages/Home'...

[Nuxt] Unable to load env vars when nodejs_compat flag enabled

For my Nuxt3 app on CF Pages, if I enable the nodejs_compat flag, the environment variables returned from useRuntimeConfig do not return the correct values. (compatibility date 2024-09-27) The correct values are the ones I set in my cloudflare project dashboard. Instead I am getting the default values as defined in my nuxt.config.ts file....

Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory

<--- JS stacktrace ---> build: build: FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory build: ----- Native stack trace ----- build:...

Deployment Failed.

Keep getting this error when I try to rebuild the app.

Hosting proxy pac on workers

Hello, just trying to follow the documentation regarding using Gateway without WARP. I've seen the possibility to host the pac file on workers : https://developers.cloudflare.com/cloudflare-one/connections/connect-devices/agentless/pac-files here is the template : ...

Your R2 bucket does not exist (workers.api.error.bucket_not_found)

I've configured my R2 bindings through the settings > runtime page. CF autocompleted my bucket, but, somehow my builds are now failing. Even if I click on the bucket link in the portal it will redirect me to the bucket, then show 10 times: bucket not exists message before loading the bucket. ...

Do I have to ad any dns things or?

I added the name server things in godaddy, and it says its completed but when I search my domain the page does not load. I just bought the domain

Cloudflare pages file limit

Guys there is any chance of increasing Pages file limit, currently 20000? We have a blogging site built with Hugo that is nearing the limit. We actually reached the limit two times, but we managed that by moving some parts of the site to another Cloudlare Pages application and creating a redirect with a middleware....

Fetch Web Traffic Stats in nextjs project

Is there a way to get this data and display it on my nextjs project, deployed with cf pages?

SSR not working on cloud flare for Astro

I have this route: which is /packages/[user]/[...packageName] when visiting this route, I am not able to see anything on cloudflate https://github.com/Zigistry/Zigistry/tree/main/src/pages/packages/%5Buser%5D...

Easiest way of persisting function logs

what's the easiest way of persisting these logs? I'm using next but this prob applies to other frameworks as well