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

Having trouble figuring out how to setup staging environment on Pages

I'm migrating a React app from Netlify to Cloudflare pages. My production branch is production and my staging branch is master. I set up a new Cloudflare Pages project building production for my production site and master for my preview site, but the previews are prefixed with the commit SHA. I want my staging site running on a fixed subdomain like staging.mysite.com. I can't figure out how to do this.

100 rules limit on Astro-generated site

Previously, I ran my Astro website with node under Docker. Since the cluster is getting too expensive for me in the long run, I'm in the process of switching to Cloudflare and have tried to use the Cloudflare adapter for Astro. Apparently the workers have an upper limit for rules (100)....

Can not build pages with gatsby?

I have errors when building gatsby site: `` NestedError: Cannot copy from public/189f64f3c732f41156006262942a538d3c551006 ...

Potential internal CF Pages issue: Error 500 on first post request but not subsequent ones

The pages worker seems to fail to process the first post request, but a try catch on the entire backend doesn't catch it and it happens even if there is no backend code other than just returning OK directly. I suspect that there is an issue at Cloudlfare Pages, SvelteKit or the Cloudflare Pages Adapter for SvelteKit. The Error 500:...

Deployment to PRODUCTION fails - tsc not found

Hello, I have a very simple web application and using GitHub integration I deploy the code to our preview environment with no issues (NODE_ENV = development). However when I deploy to PROD (NODE_ENV = production) I get an error message during the build process as shown below. 16:30:15.623 Executing user command: bash build.sh...

Cloudflare Pages http to https

Doing SEO checks on my website and getting Use 301 redirects to drive traffic to URLS with the same domain and sub domain (www and non-www subdomain). These settings are enabled. Do I need to create a page rule?...
No description

[ERROR] ENOENT: no such file or directory, open '/pages/build_tool/js/.wrangler/tmp/pages-XcFqUA...'

I'm having a problem building an update of my app in cloudflare pages as after all the building of the client, during the build phase of the functions it drops me this error ✘ [ERROR] ENOENT: no such file or directory, open '/pages/build_tool/js/.wrangler/tmp/pages-XcFqUA/functionsWorker-0.889026161898957.js' ...

unable to read wrangler.toml file with code: 1

Hello, I got this error: "unable to read wrangler.toml file with code: 1" I did not change my wrangler.toml though. And the preview deployment is working fine. ...

ESLint problem

```01:40:49.038 Oops! Something went wrong! :( 01:40:49.038
01:40:49.039 ESLint: 8.57.0 01:40:49.039
01:40:49.039 ESLint couldn't find the plugin "eslint-plugin-json"....

Remix local dev with hot reload and resource binding

I'm using the remix template (vite compiler) to develop a pages project locally. I can't find how to add bindings to D1 or KV so I can simulate them locally with live reload support. I read that cloudflareDevProxyVitePlugin set up some proxies for that but not sure how that works. Should I run both wrangler pages dev and remix vite:dev? Should I add some watch command? Any help will be appreciated. Thanks!...

Angular is just showing green background, doesn't seem to be picking up Angular component

Runs fine in live server, but just picking up green background set in global style sheet on deployed website
No description

Get Custom Domains For Pages

Within Astro config file, I need to include the domains of the application to use the Image component for external URLs (R2 Bucket for Assets). Is there any way to include the custom domains of my Pages project within my config?...

I have domains associated with a repo in Pages but 1 of them hasn't resolved.

All the domains aside from aiopie.com and www.aiopie.com resolve. Aiopie.com returns an ssl cypher overlap error and when I try to use the universal certificate it gets stuck in the validation phase.
No description

Need Help - Remix + Vite (Cloudflare Pages)

I migrated my remix application from a nodejs based template to the cloudflare template. On trying to deploy my application on Cloudflare pages, I encounter errors that make the build process fail. The main problem is that I have packages that rely on some node internals and even after turning on the nodejs_compat option for the project, the errors still show up. I have attached a downloaded log to help.

An unknown error occured. Contact your account team or Cloudflare support...(Code: 8000000)

I am getting error while trying to create a pages application. I have done it before without any problem. And this issue persist about 2 days now. AccountId: 63318f9f1e594525d61228cb49b7aa58...

Website is 404ing but seems to be working according to Cloudflare dashboard

I'm currently trying to deploy an Angular app through Cloudflare pages via Github. According to Cloudflare the website has successfully deployed and I'm not finding anything in the settings. Does anyone have any ideas?

Pages local development with Wrangler - Static assets in /dist and Functions in /functions - How to

I'm looking to debug a Pages Function locally using Wrangler. The wrangler pages dev [directory] command takes in the dir containing the static Pages assets, which are compiled to /dist in my case, however in doing so, it does not see the /functions dir since it's outside of /dist. This folder structure deploys successfully to Cloudflare, however I can't figure out how to get it running locally. I wasn't able to see any commands that I can point to the /functions directory. I also wasn't able to find anything in the Pages documentation. Any help?...

A cache somewhere cannot be cleared, causing pages.dev to give different results based on hostname

I have Cloudflare Pages set up for a domain that I own. I put up a test file and then I removed it and redeployed. The page is still there and cannot be removed. I cleared the Cloudflare DNS proxying cache, turned on development mode, and turned off Always Online, and that didn't help. I deleted the Pages build cache and redeployed, and it's still there. I deleted my Cloudflare Pages project and recreated it, and that didn't fix it. I turned off Cloudflare DNS proxying to use a regular CNAME record, and it's still there. When I access the Pages URL (https://t-rex-army.pages.dev/test), it's gone. When I access the URL on my site (https://t.rex.army/test), it's still there. That means that pages.dev itself is delivering different versions based on the hostname. How can this be fixed?...

Real-time logs and Workers Pages Dev tail not working

Hi I'm currently building my app with pages fucntion. Facing some bugs, and I've been trying to see the logs for 2 days now, but nothing is working. Real-time log isn't working, here's the error I'm getting....
No description

Cannot clone with private submodule.

Build fails at the cloning step. Cloudflare has access to all the repos in the org including the submodule.