-
-
Notifications
You must be signed in to change notification settings - Fork 27.1k
Open
Labels
Description
Hi,
I am new to ReactJS I have created and processed React app in development mode allows for successful communication with my API by Proxying API Requests from package.json.
But when I create a production build for my React app and process it using serve -s build communication with my API is unsuccessful and fails while Proxying API Requests from package.json.
I have used AXIOS to make API calls
My question is, why isn't the API loading in production /build?
If proxying doesn't work in production build how should I make API calls?
When I try to give the full URL in the AXIOS CORS error occurs
Can someone point me in the right direction?