I'm trying to adapt an older React app to work like an MS-generated client app I created. The newer one uses http-proxy-middleware in a script file named setupProxy.js
so I am trying to do the same in the other.
The thing is, I cannot see anywhere in the MS-generated app that someone is actually invoking this setupProxy.js
script. Not in the code and not in the package.json. In fact, not one single file in the app refers to it anywhere that I can see.
Yet I know that it does get invoked because I've already needed to change it to make certain fetches work.
So how does this happen? Is that just some magic file name whose very presence ensures that it will get called? Or, when I move it over to the older app, do I have to change some configuration file somewhere to be sure that it gets called?