toni.sharpe.brainstem
toni.sharpe.brainstem
CDCloudflare Developers
Created by Sanjay on 10/16/2023 in #pages-help
MIME issue
I have just fixed this problem by updating the the homepage key in the package.json file from the root of the build src, ie. the top level where you will find the src/ folder in the case of Create React App un-ejected. I had that field set to a github pages URL, so I am guessing (dev-ops not really my skillset anymore) that something in CloudFlare was looking at that, hence others mentioning 404 errors. Changing that value to my CloudFlare home page _____.pages.dev fixed the problem. If you are more experienced in dev-ops and want to supercede my answer, please do so. Example:
// ./package.json

{
"name": "gui",
"homepage": "https://YOUR_PROJECT_NAME.pages.dev/",
"version": "1.0.0",

...
}
// ./package.json

{
"name": "gui",
"homepage": "https://YOUR_PROJECT_NAME.pages.dev/",
"version": "1.0.0",

...
}
5 replies