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')); });
Cloud Native Engineer at Container Solutions. Co-organizer of Kubernetes Community Days. Creator of Get Going With Kubernetes. Lead maintainer of OSS project markdown-badges. Writer and Speaker.
Cloud Native Engineer at Container Solutions. Co-organizer of Kubernetes Community Days. Creator of Get Going With Kubernetes. Lead maintainer of OSS project markdown-badges. Writer and Speaker.
Cloud Native Engineer at Container Solutions. Co-organizer of Kubernetes Community Days. Creator of Get Going With Kubernetes. Lead maintainer of OSS project markdown-badges. Writer and Speaker.
Cloud Native Engineer at Container Solutions. Co-organizer of Kubernetes Community Days. Creator of Get Going With Kubernetes. Lead maintainer of OSS project markdown-badges. Writer and Speaker.
Cloud Native Engineer at Container Solutions. Co-organizer of Kubernetes Community Days. Creator of Get Going With Kubernetes. Lead maintainer of OSS project markdown-badges. Writer and Speaker.
Cloud Native Engineer at Container Solutions. Co-organizer of Kubernetes Community Days. Creator of Get Going With Kubernetes. Lead maintainer of OSS project markdown-badges. Writer and Speaker.
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'));
});
Everything is OK need just to add in package.json "start:"node app" before push on heroku
Thanks for mentioning Riste.
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.
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.
Thank you, it works pretty well for me too.
Thanks for letting me know that this worked for you!
Excited to hear that this worked for you!
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!