Questions tagged [cloudflare-pages]

82 questions
0
votes
0 answers

Cloudflare R2 returning zeros in stream using workers and pages

I am looking to use R2 as a store for a data structure that is a 2D array of Uint32, but when I read the stored object from my worker, I am receiving unexpected results. The goal is to create a worker that receives a series of updates as JSON, reads…
Jefferey Cave
  • 2,507
  • 1
  • 27
  • 46
0
votes
0 answers

How can I connect my Cloudflare Pages with my Woocommerce website?

I have this problem, more specifically I have a site set up on Woocommerce. Recently, I managed to generate a file with all the pages and deployed them on Cloudflare Pages. Is there any way to make dynamic elements such as the login/registration…
0
votes
0 answers

Create WAF rule to block abc.php

Currently, we have WAF rules blocking external requests to xyz.com/abc.php The rules are extremely easy to bypass. if we just add “/” behind you are able to hit the abc.php. To make is blocked by anyhow, I have craeted cloudflare_firewall_rule in…
apcxx
  • 19
  • 1
0
votes
0 answers

TypeError: globalThis.XMLHttpRequest is not a constructor

I am trying to run my remix app (with cloudflare pages) locally: "scripts": { "build": "remix build", "dev:remix": "remix watch", "dev:wrangler": "cross-env NODE_ENV=development npm run wrangler", "dev": "npm-run-all build --parallel…
Titonien
  • 31
  • 2
  • 5
0
votes
0 answers

Vuejs problem with npm run build and http-server

i have a problem with my vue js project after running npm run build && cd /dist then http-server -p 3000 when accessing localhost:3000/ all the files comes as 404 not found , when i remove the publicPath (/app/) and retry it all files comes as 200…
Mohamed Amine
  • 33
  • 1
  • 6
0
votes
0 answers

After connecting my website to Cloudlare it's working somewhere and some where not why?

Recently I have connected my website funavry technologies to CloudFlare the issue is it's working at somewhere and somewhere not. I have also check configuration setting in cloudflare account but issue is still not resolved. Anyone have idea about…
0
votes
0 answers

nextjs typescript image loader

I'm building a website with NEXT.js typescript. I'm a newbie in typescript. I need to make ImageLoader because cloudflare pages not support default image loader. but my code is not working and i don't know why. Loader code: const normalizeSrc =…
0
votes
0 answers

Cloudflare Pages access file system

Can we use fs module in Cloudflare pages to access file system and build static pages. I want to do this because I will be creating thousands of pages and I want them to be static so that they can be called unlimited times and do not exhaust daily…
0
votes
1 answer

On Cloudflare Pages KV, how do you seed values for KV keys

I have a Cloudflare Pages project with functions which used KV. I wish to test my functions with KV values that are seeded before the function is called. How do I do this?
Safa Alai
  • 1,223
  • 1
  • 15
  • 27
0
votes
1 answer

Cloudflare Pages Functions context.data

I would like to pass data from my Cloudflare Functions middleware to my Cloudflare Function. I suspect I can do this using context.data. However, the documentation in Cloudflare does not specify what this field is. Has anyone got any ideas what…
Safa Alai
  • 1,223
  • 1
  • 15
  • 27
0
votes
1 answer

Cloudflare Pages failing to load css / styling. Loading module was blocked because of a disallowed MIME type (“text/html”)

I am converting an Astro app to Sveltekit that's hosted on Cloudflare pages. The local dev and builds work fine however on deploy the Tailwind styling isn't applying. The classes are in the html but without any css actually applied. Loading module…
michecode
  • 85
  • 5
0
votes
0 answers

Does switching to Edge runtime disable SSG and SSR?

I started a simple project with Next.js 13. I only have one page with a simple h1 in it. Locally, with the default next.config.js I get the expected output - the h1 is in the HTML body. However, if I change the runtime to experimental-edge (or just…
0
votes
0 answers

Facing problem on cloudflare URL redirect

I have created a page rule : URL: *example1.org/* Setting: Forwarding URL Status: 302 Destination URL: https://example2.com Above rule is working fine with http and https but not working with www. Thank you in advance for your kind help. NOTE:…
Amer Hamid
  • 145
  • 6
0
votes
0 answers

API Log Pull via Crontab

How can I get Cloudflare WAF logs using log pull API request and send the output to a specific file , also I want this function to be automated using crontab so it does this automatically every 5 minutes, does any one have the crontab script in…
0
votes
0 answers

A sample out-of-the-box blazor web assembly program works once on Cloudflare pages

As an experiment, I wrote a blazor wasm app and it works fine on my development machine. In MS Visual Studio 2022, I published the solution to a folder. I then deployed it to Cloudflare pages by the drag and drop method. It worked great. Once. …
Knox
  • 2,909
  • 11
  • 37
  • 65