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

Where has purge everything gone for Pages?

I can seem to find Under Attack Mode and Purge Everything , which was previusly listed under Pages. UI keeps changing so much and shifting around.. The docs are also outdated as per where this feature is ?

I can't build on cloudflare. <stdin>:105:315210: ERROR: Expected "}"

when i use ali-oss in project, cloudflare build my project failed, it return this problem: <stdin>:105:315210: ERROR: Expected "}". is it vercel build problem?

Precompressed Gzip files not working

I have a Unity WebGL build I am attempting to host on Cloudflare. Unity compresses some of the files with gzip. I uploaded the build files into a GitHub repo and connected it to a Page. When viewing the page, I am told it could not interpret the compressed files. This is my _header file. ```/Build/*.data.gz Content-Encoding: gzip...

Image transform with SvelteKit

So, I put the images in the assets folder, but how do I use cloudflare's image transformation now? Say i have pic.jpg in assets/pic.jpg, visible on https://my-page.pages.dev/pic.jpg. doing https://my-page.pages.dev/cdn-cgi/image/width=80,quality=75/pic.jpg doesn't return anything... how is this supposed to work?...

Is there a build time limit?

i got this after 3 mins (builds locally) ``` 20:11:54.983  ELIFECYCLE  Command failed with exit code 139. 20:11:55.006 Failed: Error while executing user command. Exited with error code: 139...

Cloudflare pages drag and drop doesn't seem to work

I have tried to upload a folder which has a single index.html which works on my local machine and the folder only contains that index.html but when I upload that to cloudflare , It does create a cloudflare pages but I am not sure how to access it , simply going to the cloudflare link doesn't work

JS.next on pages problems.

Hi Cloudflare Discord, I have been working on a next.js webapp and trying to get it deployed to Cloudflare, but I am having some issues getting my D1 database hooked up and my functions recognized. This is my first time deploying to Cloudflare pages and my first Next.JS app, so I am considering just starting over with a demo project to get things working, but I thought I would ask for some help here first in case I am close to getting it functional. I have followed the Next.JS guide on the Cloudflare docs, but no luck. I am probably just missing something super obvious. ...
No description

Web Analytics SPA

Docs claim the beacon script automatically reports client-side navigations in a SPA, but I have not observed that to be the case. Any tips or experience with this? Perhaps I'm misunderstanding what exactly it is recording for a SPA. My assumption would be page view, but again, I'm not seeing that.

Really new to cloudflare and help would be appreciated

https://sirdso.pages.dev/ sirdso.dev I just shows error code 404 and i dont know what im doing wrong, also this is my first domain so i dont really know what im doing...

Cloudflare Pages API: Get information for a static site without requiring auth?

Basically I am wondering if there is an endpoint that lets me query basic information for a static site hosted on pages. An equivalent to neocities' GET /api/info?sitename=SITENAME!

Cloudflare Pages repository limit

We use a monorepo to deploy our blogs to multiple CF Pages projects. But CF Pages have a limit up to 10 projects connected to the same repository. We need to create more projects, we already sent the form requesting for limit increase, but not a response in 2 months. Anyone have a contact or know other way that we could request this limit increase?

Cloudfare Catches but never publish

Cloudfare catches but never publish I'm deploying from Github and I can see a notification saying that the deployment to Cloudfares is done but It isn't... Link : sejed.pages.dev (It doens't work) Deployment ID : aaee49bc.sejed.pages.dev...

[Cloudflare]: [ACTION REQUIRED] Daily request limit exceeded for Cloudflare Workers and/or Pages Fun

I have multiple projects. Where can I see how many requests are used by each project (or even deeper, by which function or page)?

DNS_PROBE_FINISHED_NXDOMAIN and then HTTP ERROR 404

I am not sure why this is happening, I run it locally with npm run dev and it works perfectly, the build goes perfectly on cloudflare, then when I actually go to the site it initially gives a DNS_PROBE_FINISHED_NXDOMAIN error, then goes to HTTP ERROR 404 after like 5 minutes. I got a whole lotta nothin tbh. Everywhere I look it says that Cloudflare isn't even supposed to give 404 errors....
No description

Following the Fullstack Auth with Next JS and D1 tutorial but having issues on step 4

â–˛ ERROR: getCloudflareContext has been called in sync mode in either a static route or at the top level of a non-static one, both cases are not allowed but can be solved by either: â–˛ - make sure that the call is not at the top level and that the route is not static â–˛ - call getCloudflareContext({async: true}) to use the async mode â–˛ - avoid calling getCloudflareContext in the route ...

'content-type' header issue when validating ApplePay Well Known Association file in Pages instance

Hi there, I've been directed here from CloudFlare Support. I have an Apple Well Known verification file saved in my Pages application: https://checkouttemp-dev.shopthru.dev/.well-known/apple-developer-merchantid-domain-association...

CF Functions - Can you test pages functions in dev mode with HMR?

Every time i need to test a local functions in my functions directory I need to - npm run build - wrangler pags dev ./dist I can edit the functions locally, but if I make changes to my client side codebase, i need to build again....

Heavily protect a route from ddos

I have a route '/ai-example' that has an AI model that takes a 1-5seconds to repond, Now I want every person going to that route through a captcha or something, then that request is going to go to some '/api/ai-route' that I want to rate limit or something, I want these routes to be completley free from any spams or something similar.