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

Pages.dev domain isn't working, but individual build links work

Hello, I am running into a problem where the pages.dev domain gives the "Nothing is here yet" error. The domain is called https://mixstory.pages.dev. Bizarrely, https://main.mixstory.pages.dev does work, as do the specific deployments such as https://6ebe3fb0.mixstory.pages.dev/ ...

Pointing subdomain (of non-CF domain) to pages site gives SSL error

I have a domain hosted in Go Daddy and I have a CNAME record with a subdomain pointing to my Pages site. - Type: CNAME - Name: web (that's my sub-domain) - Content: mypagesapp.pages.dev. (Go Daddy inserts the trailing .)...
No description

Internal error deploying Pages+Function

Hello! We've triggered a pages deploy about 2 weeks ago with a minor bug fix and it didn't work due to an internal error. The CF outage was very recent, so we postponed it. We are now retrying the deployment but even after several tries, the last step is failing. We are also getting some weird errors in the Pages Overview site, where it only opens successfully 1 out of 10 tries. It throws with error 800000. I don't know if it could be related, but we are not seeing issues with Pages in the Status page. ...
No description

How do I auto deploy monorepo (conrains only 1 frontend project and some backend services)

Is there any way to use the github action to deploy a nextjs frontend which is inside a monorepo. The monorepo contains multiple nodejs backend service and one frontend service. I only want to deploy the frontend to cloudflare pages....

Pages pricing for static React website

Hello. Today, I found out that I can use Cloudflare pages to host static website for free. I am long term Cloudflare DNS user and I know that there is no catch in there in terms of free DNS and proxying for my websites, but I am not sure why exactly Pages are also free? I am planning to host a static React based website and my question is if the Pages Free tier is really free for unlimited amount of requests in my case? Thanks!...

Proxied DNS directs to old domain

I have a domain (say a.com) that used to forward to another domain (b.com). I recently set up a Cloudflare pages site (say c.pages.dev) and reconfigured a.com's DNS to direct to c.pages.dev. When I have the Cloudflare Proxy turned on for the CNAME entry, it still forwards to b.com. When I turn off the proxy and use just DNS, it forwards to c.pages.dev. I'd like to use the proxy, but this behavior is preventing that. I tried using https://liberate-the-hostname.pages.dev/ as well, but it didn't se...

Custom domain not working (Status is Inactive (error))

I recently setup a cloudflare app and added a custom domain. everything went well as usual but when i check the domain it seems in error + when going to the page i'm greeted with Connection timed out Error code 522. The pages.dev domain works. How can i solve this? Never it happened before....
No description

Getting 522 errors on static Pages site

Hey all, I'm new to Cloudflare and have set up a fully static website. My visitors are suddenly getting 522 errors when trying to visit it. I can't replicate it myself, but I have users complaining from the US and Europe. Anyone know what's going on? Pages site: https://kbtl-website.pages.dev/ (also https://kinkbetweenthelines.com/)...

Cache broken?

Since January 11 the build time of our pages application has increased from 1.5m to >6.5m with (AFAIK) no changes in the setup on our side. The build log now includes the following lines: ```...

change pages functions watch directories in wrangler

When running pages functions locally wrangler watches only the functions directories. Is there a way to make it watch other directories too? [posted by mistake in Workers originally]

Enriching EventContext

What is the best way to enrich EventContext? For security reason we need to a lot of checks during the middleware, for example to check for CSRF, sessions/login, and so on. It would be really helpful to be able to pass more data down the next function/middleware. This cannot be done directly with headers in a safe way. What's the best way to do so? what's a safe way to enrich the context? Related: https://developers.cloudflare.com/pages/functions/api-reference/ lists some fields that are not described....

521 Error on a Client's Website

Hey everyone, I'm having a real struggle with the website of a client. I have reached out to GoDaddy and tried every single troubleshooting step I could think of with no luck. I was hoping that maybe one of you has a solution in mind for this kind of error? I'm not sure if this is the right place to reach out to but this issue is really a problem and it came out of nowhere seemingly as everything was operating perfectly yesterday morning. If anyone here can help, id really appreciate it!
No description

Qwik-City deployment no longer working (couple days ago)

It appears that something has changed over the weekend which is causing my application to no longer function. My suspicion is some kind of "optimization" is stripping important information that qwik city needs to function The screenshot below, when I look at the source code with JavaScript disabled....
No description

Pages not respecting custom Cache-Control header

Any ideas on why Page's wouldn't be respecting a custom cache-control header for CSS files? I have this in my _headers file: ```...

use microsoft graph API auth in CF page

I try to use MS graph API in my remix+CF page project but the sample code https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-node-samples/auth-code asks installing @azure/msal-node which does not work (as expected). How can I make MS auth work? Thanks for any hints.

Node 21.6.0 fails to setup tools

Node 21.6.0 (current) came out today and it detects the right versions, but partially fails. ``` 16:22:00.366 Using v2 root directory strategy 16:22:00.393 Success: Finished cloning repository files...

Accessing assets from pages functions

Hey folks, I'm building an app on Pages using the CloudFlare Astro adapter. I'm trying to access some of my static assets in a function, but Astro.locals.runtime.env.ASSETS seems to be undefined, both in directory or advanced mode. Does anyone know if there's any extra bits of config I need to do or?

GitHub checks suddenly failing on excluded branch

I added a new excluded preview branch prefix, and it seems to have broken for older branches which were already excluded: there are no failed builds in the dashboard, but in GitHub it says Build failed, and the link says
Project not found. The specified project name does not match any of your existing projects. (Code: 8000007)
and the url indeed has the wrong project name (that might have been the project name months/years ago) if I change the project name in the url to the correct one attached to that repo, then it says
The deployment ID you have specified does not exist. Update the deployment ID and try again. (Code: 8000009)...

Wrangler error with C3 scheduled worker

When creating a scheduled worker with C3, upon running Wrangler with --test-scheduled and visiting http://localhost:8787/__scheduled?cron=*+*+*+*+*, I get the following error: ``` [wrangler:inf] GET /__scheduled 200 OK (36ms)
[wrangler:err] AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value:...
No description

cloudflare and minio s3

Hi all. Please tell me, there is a site where images are loaded from s3 minio on port 9000. I connected cloudflare to the site, but the images are not loaded after that, tell me why?