This is supposed to solve the problem of Heroku not reaching the backend. Currently, it calls an external localhost, which sits on the user's local machine. Instead, this is supposed to reach the backend hosted on Heroku. This requires testing on Heroku to verify.
Installing http proxy middleware which is required for making this backend proxy
Redirecting all /api calls to the backend which now also sits at a /api base to distinguish from the frontend
Creating setupProxy.js file which automatically proxies api requests to the backend
This is supposed to solve the problem of Heroku not reaching the backend. Currently, it calls an external
localhost
, which sits on the user's local machine. Instead, this is supposed to reach the backend hosted on Heroku. This requires testing on Heroku to verify./api
calls to the backend which now also sits at a/api
base to distinguish from the frontendsetupProxy.js
file which automatically proxiesapi
requests to the backend/api