Trouble uploading React app to cloudflare

Howdy yall, I recently finished making a website using react.js, and I was uploading it with cloudflare, but when I try to build and deploy it I keep getting errors, and I'm not sure what to do to fix it. I followed the doc https://developers.cloudflare.com/pages/framework-guides/deploy-a-react-site/ and I'm on the last step, deploying it from my dashboard. here's the log any help would be appreciated as I am very new to all this :) https://qc-data.pages.dev/
Deploy a React site · Cloudflare Pages docs
React is a popular framework for building reactive and powerful front-end applications, built by the open-source team at Facebook.
3 Replies
Chaika
Chaika•12mo ago
👋 That guide is for Create React app, not just loading React via Script Tags In the Cloudflare Dashboard, under Workers & Pages -> Your Pages App (qc-data), if you go to Settings -> Builds & Deployments you can click "Edit Configurations" under Build Configurations You'd want something like this:
No description
Chaika
Chaika•12mo ago
You'd also want to rename MDN.html to index.html if you want your website to load that on the root https://qc-data.pages.dev/ instead of having to tell people/get people to go directly to https://qc-data.pages.dev/MDN.html Pages will run a new build on every commit by default. If you rename that file and push, it would do one. Otherwise you could go to your Pages Project in the Dashboard, the default Deployments tab, and click the three dots to the right in the Deployments table to retry that failed deployment with the new settinga
Leafsy
LeafsyOP•12mo ago
ok, i will try that, thank you should the build command and build output directory both be blank? oh it worked!!! thank you so much for your help, its working great!!!
Want results from more Discord servers?
Add your server