Build Version Of React App Giving Wrong Links To CSS And JS Files
I've been working on a simple React project named Simple-portfolio, Github repo: https://github.com/Devang47/simple-portfolio live site url: https://simple-portfolio.pages.dev/ Th
Solution 1:
Your app is deployed to https://simple-portfolio.pages.dev/ which is the root of the domain, but the homepage
is set to http://Devang47.github.io/simple-portfolio/ which has a different path.
To fix this, delete homepage
from package.json
, rebuild your app, and redeploy it to Cloudflare Pages.
Post a Comment for "Build Version Of React App Giving Wrong Links To CSS And JS Files"