sintaxi / surge

CLI for the surge.sh CDN
https://surge.sh
2.86k stars 136 forks source link

Failed to load resource: the server responded with a status of 404 #300

Closed namminammi closed 6 years ago

namminammi commented 6 years ago

I've deployed my React app and it's getting "Failed to load resource: the server responded with a status of 404" error, and none of css or js is loading. I'm using the create-react-app boilerplate and deploying from my-app/build. It works properly in my localhost:3000.

namminammi commented 6 years ago

It happened that the build command didn't remove the root folder from the path and once it was removed index.html could locate all resources again.

AnaitBI commented 5 years ago

@namminammi How to do that?

Sean-93 commented 4 years ago

yeah, how do you do that

UmairHussain123 commented 3 years ago

but how to do that