I made a simple todo application with React,Node and Mongodb. The application works fine while run on the dev server. When I deploy it, however, it appears as though the app can't hit the todo API routes. Any help would be appreciated. this is my github repo link(
CodePudding user response:
.env is in your .gitignore file, which is what is not pushed to Heroku. If you remove .env from your .gitignore, that may help. I faced the same issue before.