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

zola not found even I set the zola version as Environment var

I try to setup a blog with zola but it failed to build. I set the zola version as environment vars in settings. But it failed to take effect. Is this a bug? The latest successfule build is 812896ea.zola-blog-btd.pages.dev The account ID is: 4c4b214751636e8baab160d34588a73a error:...

Why does `wranger pages dev` watch the output directory changes instead of source?

Hi all 👋 When I run wranger pages dev, it only rebuilds when something changes in my output directory, build. How do I get it to rebuild when something in my source directory, src changes?...

.tpl files and php

I have a github repository with .tpl files and was wondering how to use it on cloudflare pages

Node 18.19 takes forever to download

```log 2024-07-30T14:37:34.563178035Z Cloning repository... 2024-07-30T14:37:37.208010601Z From https://github.com/minhperry/minhperry.github.io 2024-07-30T14:37:37.20825092Z * branch 775d7b9c22d1f0503f930b502b384de126da7d4d -> FETCH_HEAD 2024-07-30T14:37:37.208269238Z ...

TypeError: Inter-TransformStream ReadableStream.pipeTo() is not implemented

I am trying to do something similar to this (1) to stream responses from my Pages functions API. This works well in my local development environment, but fails when deployed to Cloudflare with the above error in error log. Curiously, looking at Workers ReadableStream methods docs (2), it looks like the pipeTo method is implemented. Is Pages perhaps using older or different version of Workers before this method was implemented? I suspect this because I found this post (3) that links to this (4) that describes the similar problem. Is that right? If so, how soon should we expect Pages functions to support the missing method? If not, what am I doing wrong and how do I fix it?...

I want to know a deployed URL when a new deploy is made. How can I do this?

For example, Vercel has Vercel notification that notifies me deploy status and the new deployed URL (if the deploy has succeeded) by sending a Slack message. Slack is ideal but it doesn't need to be, I want at least email. I couldn't find such a feature on Cloudflare dashboard. How can I do this? Does it need to implement a custom integration??...

I'm in a 'redirect loop' trying to use page domain with nginx.

Hi. I want to use @Cloudflare/next-on-pages, but I cannot figure out how to successfully get my docker nginx proxy manager to work (currently stuck in redirect loops). My goal is to have the endpoints starting with '/api' and '/auth' go to my VPS's IP for ExpressJs, and everything else go to the page domain 'DOMAIN.pages.dev'....

_headers file in astro project

Greetings, I'm using astro framework with cloudflare adapter: https://docs.astro.build/en/guides/integrations-guide/cloudflare I tried to implement _headers file. And it works with static site mode, but not with output: server. ...

the script will never generate a response.

I'm using next.js to serve images on my Cloudflare pages, but sometimes an error occurs with the img tag and the image doesn't display. Server side: the script will never generate a response. Client side: Error 1101 You've requested a page on a website (mysite.com) that is on the Cloudflare network. An unknown error occurred while rendering the page....

How to solve cache problems from cloudflare.

I have a customer who has these problems and she, I want her to solve them from Cloudflare, can someone guide me or give me an idea.

Cannot deploy and show error message "This repository is being used for a Cloudflare Pages"

i get error when click "save and deploy" after setup cloudflare account in my github private organization repository. i also re-install Github Apps, but error always occurs

bun install error

``` 14:15:42.413 HEAD is now at 2727849 Merge pull request #7 from Futverse-v2/6-select-to-compound 14:15:42.413
14:15:42.497
14:15:42.497 Using v2 root directory strategy...

Cloudflare Pages rejects project uploads containing minified "worker.js"

hi everyone. i am experiencing a very strange and unprecedented thing when i try to upload a project to my pages. When i upload a project that contains a minified "_worker.js" i get a 403 error. but when the "_worker.js" is not minified it works. Why is this happening? has anyone else experienced the same thing? it took me hours just to find the source of this problem and it turns out it is caused by a very trivial and "strange" issue, which has never happened before. i am using esbuild and here is the command: esbuild ./dist/_worker.js --bundle --format=esm --platform=node --outdir=dist --allow-overwrite --legal-comments=none --minify...

404 on /cdn-cgi/image/ when deploying Astro

I am deploying an Astro site which rewrites my image reference to be https://mydomain/cdn-cgi/image/width=512,height=512,format=webp/_astro/myimage.png This gives a 404 error when accessed. The source image /_astro/myimage.png loads as expected. Why would /cdn-cgi/image not be returning?...

Info on how to get asset content for pages functions

Hello all! I am trying to use cloudflare pages functions and followed the examples on the site here: https://developers.cloudflare.com/pages/functions/examples/cors-headers/ and I am trying to to modigy the asset content before I send it to the client. Am I able to do this? I can get the asset like so...

Angular deployment can't find build folder

My project: https://github.com/minhperry/minhperry.github.io I've seen some posts on the community forum and they said I should set it like how I set locally. I did and it still cant find the folder...

[BUG] Locked myself out

Good Evening, i basically locked myseld out of of my account. I got access but i am missing privileges. What happend I had send an Share Account Member invite Link to ny 2. Email adress , lets call it "emailX". As i opened the link to join via Email, i was still logged in with my main account "email1". Cloudflare statet i was on the main account and should use the other account "emailX" to join. ...

fail to deploy zola

I try to deploy a zola project. Everything is OK. But when I try to visit. I got 404 page. Of course I add the produced url to my config file. Please help....

Early hints on pages causing 504 errors

Hi, we are observing an increase of 504 errors after migrating a product to pages. This seems to be caused by early hints, as we see every request duplicated and with the user-agent "nginx-ssl early hints". These errors aren't shown in the cloudflare dashboars but rather in our logs which we get from logpush. Since we have monitoring on 5xx errors we noticed this increase and would like to resolve them. Our idea is to disable early hints for pages on our account (we noticed it happens for all the pages we have). Of course we are open to suggestions. Our devs have tried to configure the headers as that could've maybe solved the problem, but that didn't help https://developers.cloudflare.com/pages/configuration/early-hints/ ...