Today I had to deploy a React application to Heroku. I tried several methods and one of them required that I deployed the entire codebase since Her...
For further actions, you may consider blocking this person and/or reporting abuse
Hi, Thank You very much! Just to mention, may be will be a good idea to add this to the App.js, for handling unknown paths.
app.get('/*', function (req, res) {
res.sendFile(path.join(__dirname, 'build', 'index.html'));
});
Thank you, it works pretty well for me too.
Excited to hear that this worked for you!
Thanks for letting me know that this worked for you!
Nice hack!
I have applied your solution with docker app for heroku and works fine too
thanks a lot!!
Awesome!🚀
Glad to hear that this worked for you.
Works pretty well, I tried to figure out this using several hours. Your solution is the best.
Hello Chris!
I'm excited to hear that this worked for you.
Thanks for letting me know.
Everything is OK need just to add in package.json "start:"node app" before push on heroku
Thanks for mentioning Riste.
Thank you so much for writing this article. Your solution worked and I was able to deploy my app's production build to Heroku.
Happy to hear that you found this helpful!