Hi John, thanks for the article.
Robert Istok

Hi Robert — I suspect it might be this.

const ROOT_URL = ‘http://localhost:3001/api/auth';

In redux/auth.js

this address will only work locally, but once in production, Heroku will typically assign a port randomly.

Try redefining the endpoint like this. In development, this will work due to the “proxy” entry in the client/package.json we defined. And in production, it’ll work because it’s just a local resource.

const ROOT_URL = ‘api/auth’;

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.