Home > Enterprise >  Heroku Routes to backend not working in development mode
Heroku Routes to backend not working in development mode

Time:08-14

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(View logs menu popup

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.

  • Related