mdbootstrap / mdb-react-ui-kit

React 18 & Bootstrap 5 & Material Design 2.0 UI KIT
https://mdbootstrap.com/docs/b5/react/
Other
1.41k stars 264 forks source link

Deploying to Heroku #40

Closed samuelzxu closed 6 years ago

samuelzxu commented 6 years ago

How do I configure this for deployment to heroku? I tried a bunch of the methods listed elsewhere online (adding the static.json, etc) but I'm still getting a 404 error. Help is greatly appreciated!

mattonit commented 6 years ago

what have you tried so far?

samuelzxu commented 6 years ago

Adding a static.json file with { "root": "build/", "clean_urls": false, "routes": { "/**": "index.html" } }

Restarting the dyno on heroku, adding a proxy field in package.json.

On Jun 11, 2018, at 12:39 AM, Mattonit notifications@github.com wrote:

what have you tried so far?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mdbootstrap/React-Bootstrap-with-Material-Design/issues/40#issuecomment-396120281, or mute the thread https://github.com/notifications/unsubscribe-auth/AOHE1VKy6iY5vvLUX8SU6E6PfBSV5vceks5t7fRsgaJpZM4Uh9N8.

Rotarepmi commented 6 years ago

I'm closing the issue, which is not an issue in all.

https://devcenter.heroku.com/articles/deploying-nodejs Build should be deployed

Regards