When you drop your build folder into netlify, and when you open your site and reload .... you will see below error
Also deploy log stuck like this.....
I will suggest three ways for it:
1.) First of all check all the URL at frontend you edited after you deployed the backend at render.
because that may cause the problem. If your API URL is fine and still the page not found.
Then Deploy the backend again...(To know more the exact steps for deployment click here. ) (I faced the same issue).
2.) Create a _redirect file in the public folder of the frontend where the index.html file will be present.
After that paste
/* /index.html 200
After that again build the folder frontend by using: npm run build
Drop that build on netlify.
Note: If deploy log stills hangs create a deploy for that and drop the build folder without the redirects you will your site is perfectfully published.


Comments
Post a Comment