I have successfully deployed my React front end and Node backend on Render, however I’m not getting any server response.
The full error is
**POST http://localhost:3001/ **
net::ERR_CONNECTION_REFUSED
My backend render environment has
- DB_URL = mongodb+srv://:@cluster0.0dze4q2.mongodb.net/?retryWrites=true&w=majority
- RENDER_APP_URL = https://<site_name>.onrender.com
My frontend render environment has
- RENDER_APP_URL = https://<site_name>.onrender.com
I have my base url set to
- baseUrl: process.env.REACT_APP_URL ||
http://localhost:3001/
I have cors set up and have whitelisted my backend and frontend render urls
I’ve been messing around with different options for a while but no luck getting it to work.
Thanks in advance for your help!