Heroku node.js backend not working the same way with React frontend in the same way as local despite Procfile
I have a React website with a Node.js backend that is deployed to Heroku through my GitHub account. The React website frontend sends contact form requests back to the Node.js backend server, which sends them to an inbox via SMTP. However, while the code works perfectly on localhost, I have had several issues with Heroku deployment. I was able to fix many through code updates, upgrading my dynos, and the like, but this last one is confusing because I think the code is working, but that the node.js server is somehow taking precedence over the React frontend, causing no actual frontend components to display. When I comment out the configuration in the Procfile (web: node server.js
), the frontend code works but at the cost of no backend. I’m not sure where to go from here.