Search code examples
javascriptreactjsdeploymentnetlify

Deploying React app on Netlify returns 404 page not found


It deploys successfully, but shows that there are no pages to show. Although the zip file generated has all the data needed.

This is my project layout

I have my netlify linked with the correct git repo, so I put my base directory to as frontend folder, since I understand that it needs to go there. Netlify build setings

What am I doing wrong?


Solution

  • Publish directory should point to directory of your build, i assume that in your case its build folder because you are only deploying /frontend folder here