I have a 404 page though the deployment is published. This was not initially there when I deplyoed my app 2 months ago. I only stumbled on it now because I was checking my apps functionalities.
I checked my /index.html and I can see it when I download my published deploy.
I also just created a netlify.toml file in an attempt to resolve the issue with this command code
[build]
command = “npm run build”
publish = “/build”
base = “/”
[[redirects]]
from = “/*”
to = “/index.html”
status = 200
I created my app with React, deploed it and all was working. Now I can access the app but not all the pages on the app
When I checked https://movie-app-client.netlify.app/, it appears that the site is loading fine. Is there some other page that’s not loading specifically?
Hello please can i get help? i have been trying to deploy my react.js app but keep on saying error 404 “page not found”. i have followed all steps and made some research but still the same thing. please any help? which information can i share to get feed back?
The configuration you displayed in the original post appears correct, however yes, I see a 404 returned on refresh (normal navigation does appear to work correctly) which suggests there is an issue with this.
Are you able to share the repository you are deploying from?
As stated in my initial post, I only created the netlify.toml after I discovered the issue and was trying to get it solved. Before I had the file, I had successfully deployed my app and all pages were functional.
I see that you’ve moved the netlify.toml file to the root directory. We believe that since the .toml file is now in the right place, you should be able to build if you remove && cp _redirects dist from the build command. Could you give that a shot and let us know how it goes?
this is what worked out…I removed the .toml file which was not initially in my project and changed my nav element tags from “Nav.Link” to “Link” and everything worked out