Connect backend with frontend?

Ok, now that I’ve successfully deployed both my frontend and backend, and they’re both working. So, how do I connect them? I’ve updated every route in my frontend code like this:

'process.env.REACT_APP_API/api/v1/' in each 'await axios.get'
and in my .env file for the frontend, I’ve included the URL of my backend.

But, as expected, it didn’t work. So, what exactly do I need to do?

It is a MERN stack website

Hi there,

You can reach a backend API by its Render URL or custom domain (if given one), e.g.



Render Support Engineer, MT (UTC-6, UTC-7 in Winter)

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.