-2

after deploy mean stack on heroku in work good if local server running but if i close local server get error "POST http://localhost:4000/api/newcontact net::ERR_CONNECTION_REFUSED " and how it work with localhost after deploying

salah
  • 1
  • 1

1 Answers1

0

In your code, you might be using http://localhost:4000 in the services. Change it to the URL where your API is actually hosted.