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 Server
Ssv._.3421/20/2024

how can i query D1 in cloudflare without deploy?

im quering D1 database with Functions but it seems query in local.. how can i query on remote without deploy? i started dev server with 'npm run pages:dev'...
No description
Aalexdachamp3161/19/2024

Stuck at 100 cloudflare pages, trying to get to 1000 please help

We are using cloudflare pages to move our 1000 websites to new hosting, but we are stuck at 100 websites. I have put in multiple requests to increase page limit but we cant get an answer or help. Is there anyone from CF who can help directly? account id: 3c4bc505d9347dcf08ecfdf67179d0b0...
Mmackenzie1/19/2024

Pages project (with functions) written in rust

I would like to continuing using rust in the front-end aspect of my project (using workers and DO already via workers-rs), and I am interested in using Pages, with Functions. Does anyone know how much can be done using any rust-based web framework, or workers-rs to write functions, etc? I'm just trying to understand any "rustiness" available in Pages with Functions before getting started, as otherwise I might go with a different option (e.g. a rust web project deployed elsewhere)....
Mmackenzie1/19/2024

wrangler or C3

I want to start my first Pages project. The guide here:; https://developers.cloudflare.com/pages/get-started/guide/ says...
Hhimmelattack1/19/2024

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/ ...
MMitya1/19/2024

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
MMartyns1/19/2024

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
AAyush1/18/2024

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....
BBaterka1/18/2024

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!...
Kkonfused_kid1/18/2024

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...
Nnaive171/18/2024

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
EEnglishRobin1/18/2024

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/)...
MMarkus1/18/2024

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: ```...
LPLost Pages1/18/2024

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]
LPLost Pages1/17/2024

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....
TBTom Barclay1/17/2024

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
RRyanCaoDev1/17/2024

Spontaneously failing builds

I've been having some problems deploying my website; it often spontaneously errors with ``` ELIFECYCLE  Command failed with exit code 1. Failed: Error while executing user command. Exited with error code: 1...
CCole1/16/2024

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
Mmulch1/16/2024

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: ```...
Jjiangok1/16/2024

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.