When i deploy to heroku it says that it is successfull. But when i open the page i get the heroku "application error" page. But when i try to navigate to any sub page the custom 404 page in the app and the message that is emitted by the server is printed in the console.
When i build the application locally and run npm run start everything works (yes i know when deploying to heroku i need to remove the PORT property in start-prod).
When i deploy to heroku it says that it is successfull. But when i open the page i get the heroku "application error" page. But when i try to navigate to any sub page the custom 404 page in the app and the message that is emitted by the server is printed in the console.
When i build the application locally and run
npm run start
everything works (yes i know when deploying to heroku i need to remove thePORT
property instart-prod
).This is my Procfile