Questions tagged [cloudflare-pages]
82 questions
1
vote
1 answer
Should I Proxy Cloudflare Pages Custom Domain
I have a static site using Cloudflare Pages.
I am not using any custom reverse proxy functionality provided by the Cloudflare CNAME DNS Proxy i.e. when you tell Cloudflare to use an A record instead of CNAME to reverse proxy the request to your…

Joshua Taylor Eppinette
- 774
- 4
- 12
1
vote
0 answers
If I don’t use a static site generator on CloudFlare Pages, does each deploy still count towards the build limit?
If I have a GitHub repository with static HTML, CSS, JavaScript, and some image files, and I publish this to CloudFlare Pages (and use no site generator), does it count towards the 500 builds per month limit?

hyiax
- 11
- 1
1
vote
1 answer
Npm build using Cloudflare Pages results in 'Cannot Find Module'
i'm trying to upload my create-react-app site to Cloudflare Pages, and everything's been going great, However, when I add this line: import NotFoundPage from "pages/NotFound.js"; of code to my App.js, it throws a rather odd error:
22:57:43.995 …

Joyte
- 55
- 1
- 7
1
vote
0 answers
Issue with node while building svelte application in cloudflare pages
When I try and deploy my svelte project in Cloudflare pages I get this error
22:58:31.466 Cloning repository...
22:58:32.245 From https://github.com/ehubbartt/ethanhub
22:58:32.245 * branch …

Ethan Hubbartt
- 11
- 2
1
vote
0 answers
Transfering from github pages to cloudfare pages
So I'm a brand new guy on this web-building stuff. i have a page on GitHub page that I generated from a Wordpress instalation exported to static files through a plugin. they are all static files. but when i try to use this same repository on…

migno_chrono
- 11
- 2
1
vote
0 answers
Cloudflare Pages Wrangler local proxy returns 404 for SPA
I have a Pages Single-Page App (SPA) with a hello world function. I've got it working on Cloudflare servers. the '/' route works great. '/api/hello' my function works great and also '/about' which is resolved by my SPA router works fine.
However,…

Safa Alai
- 1,223
- 1
- 15
- 27
1
vote
1 answer
How to display HTML file at root -- cloudflare pages
I am trying to create a simple HTML site using Cloudflare workers. Literally just serving raw HTML loaded from my Github repo. I however cant figure out how to have an HTML file at the root.
I want to be able to go to:
https://example.org/
and load…

Joshua
- 56
- 1
- 4
1
vote
1 answer
Cloudflare pages worker error when running wrangler dev
I'm following this tutorial (to get cloudflare pages working with fauna db), but when I get to the chapter "Testing and deploying the Worker" and try to run wrangler dev (which will run npm run build, which in turn runs worktop build index.js) I get…

Terrabythia
- 2,031
- 3
- 19
- 29
1
vote
1 answer
Running node js on cloudflare pages
I am using Cloudflare pages for the first time and I've been trying to understand how my node js project should be started.
Usually, when I work on a server, what I would do is npm install and then npm start. But in Cloudflare pages (serverless) I…

jrz
- 1,213
- 4
- 20
- 54
0
votes
1 answer
I tried to deploy my React App on Cloudflare. Building process fails & I get some Errors. The complete log is provided below
2023-08-30T15:25:19.279068Z Cloning repository...
2023-08-30T15:25:20.326601Z From
https://github.com/aryangupta0001/notescloud
2023-08-30T15:25:20.327358Z * branch
be1f5be617d6762591f673e4d01a7551c55fd781 ->…

Aryan Gupta
- 11
- 2
0
votes
0 answers
Gatsby version 5 build failed on Cloudflare worker
I upgraded Gatsby from v4 to v5, it is hosted on Cloudflare worker. When it builds it gives a permission error, maybe related to Dockerfile or it maybe related to cache. Cloudflare doesnt have option to clear cache when deploy. How do i fix the…

Shah
- 11
- 3
0
votes
0 answers
Debugging the cloudflare mailchannels plugin
I am trying to use the cloudflare mailchannels plugin for my cloudflare pages. But even though I set up everything exactly as described, including the Domain Lockdown, I do always get the following result:
Could not send your email. Please try…

morja
- 8,297
- 2
- 39
- 59
0
votes
0 answers
Supabase login issue after deploying website on Cloudflare Pages
Description:
I recently deployed my website on Cloudflare Pages, and I'm encountering an issue with the Supabase login functionality. Prior to deployment on Cloudflare pages I deployed on Vercel, where it worked fine. Everything was working fine in…

Shubh-Dev
- 1
- 1
0
votes
0 answers
Serving content from subfolder in R2 bucket on a subdomain
I have an r2 bucket with content in subfolders like:
MY_BUCKET/subfolder1/index.html
MY_BUCKET/subfolder2/index.html
MY_BUCKET/subfolder3/index.html
How I can configure my cloudflare site to serve content from these subfolders on subdomain of my…

tzador
- 2,535
- 4
- 31
- 37
0
votes
1 answer
cloudflare_worker_script multiple files
Using CloudFlare web dashboard it's possible to split your code into multiple files using ES module syntax. It works out of the box.
Is it possible to create such configuration using CF Terraform provider and cloudflare_worker_script without JS…

deathangel908
- 8,601
- 8
- 47
- 81