CRA setupProxy issues on a Render static site

Hi all, I set up a Create React App as a static site which has a setupProxy that I use to connect to a third party API (contentful) and some static API calls I make converting some CSV to JSON.

The code is here: at main · namroodinc/ · GitHub

However, whilst this works fine locally, it doesn’t seem to work once it’s deployed to Render.

Is there something more I should be doing? Any help would be massively appreciated!


Hi Ashoor,

To run server-side code (e.g. setupProxy.js) you’d need to be running this as a Web Service, not a static site.

Locally you may be running yarn start or npm start which starts a web server. That may be why it’s working for you there.



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